mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
VST Host compile fixes for win32.
This commit is contained in:
parent
877ac3b683
commit
b2c60afe53
1 changed files with 5 additions and 6 deletions
|
|
@ -454,15 +454,14 @@ public:
|
|||
eff->dispatcher (eff, effClose, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
static String getDLLResource (const File& dll, const char* type, int resID)
|
||||
static String getDLLResource (const File& dllFile, const String& type, int resID)
|
||||
{
|
||||
DynamicLibrary dll (dll.getFullPathName());
|
||||
|
||||
HMODULE dllModule = dll.getNativeHandle();
|
||||
DynamicLibrary dll (dllFile.getFullPathName());
|
||||
HMODULE dllModule = (HMODULE) dll.getNativeHandle();
|
||||
|
||||
if (dllModule != INVALID_HANDLE_VALUE)
|
||||
{
|
||||
HRSRC res = FindResource (dllModule, MAKEINTRESOURCE (resID), type);
|
||||
HRSRC res = FindResource (dllModule, MAKEINTRESOURCE (resID), type.toWideCharPointer());
|
||||
|
||||
if (res != 0)
|
||||
{
|
||||
|
|
@ -470,7 +469,7 @@ public:
|
|||
|
||||
if (hGlob)
|
||||
{
|
||||
const char* data = LockResource (hGlob);
|
||||
const char* data = static_cast <const char*> (LockResource (hGlob));
|
||||
return String::fromUTF8 (data, SizeofResource (dllModule, res));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue