mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
Fix Windows _UNICODE build
Use charset specific variant of GetModuleHandle without relying on _UNICODE not being defined.
This commit is contained in:
parent
f7d70aa581
commit
c534d4c1d1
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ static QString nativeModule;
|
|||
|
||||
static void* getExportedFunction(const char* symbolName) {
|
||||
#ifdef _WIN32
|
||||
HMODULE library = GetModuleHandle(nativeModule.isNull() || nativeModule.isEmpty() ? nullptr
|
||||
HMODULE library = GetModuleHandleA(nativeModule.isNull() || nativeModule.isEmpty() ? nullptr
|
||||
: nativeModule.toLocal8Bit());
|
||||
FARPROC symbol = GetProcAddress(library, symbolName);
|
||||
return (void*)symbol;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue