fix GetProcAddress usage

This commit is contained in:
Rudolf Polzer 2011-05-16 06:37:38 +02:00
parent 865fc23ebf
commit dec339b67c

View File

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