fix GetProcAddress usage
This commit is contained in:
parent
865fc23ebf
commit
dec339b67c
|
|
@ -216,7 +216,7 @@ void HomePaths_Realise()
|
||||||
wchar_t *mydocsdirw;
|
wchar_t *mydocsdirw;
|
||||||
HMODULE shfolder = LoadLibrary("shfolder.dll");
|
HMODULE shfolder = LoadLibrary("shfolder.dll");
|
||||||
if(shfolder)
|
if(shfolder)
|
||||||
qSHGetKnownFolderPath = GetProcAddress("SHGetKnownFolderPath");
|
qSHGetKnownFolderPath = GetProcAddress(shfolder, "SHGetKnownFolderPath");
|
||||||
else
|
else
|
||||||
qSHGetKnownFolderPath = NULL;
|
qSHGetKnownFolderPath = NULL;
|
||||||
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
|
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user