1
0
Fork 0
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:
jules 2012-10-10 14:24:40 +01:00
parent 877ac3b683
commit b2c60afe53

View file

@ -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));
}
}