fix GetProcAddress usage
authorRudolf Polzer <divVerent@xonotic.org>
Mon, 16 May 2011 04:37:38 +0000 (06:37 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 16 May 2011 04:37:38 +0000 (06:37 +0200)
radiant/mainframe.cpp

index d168c77..00b5bad 100644 (file)
@@ -216,7 +216,7 @@ void HomePaths_Realise()
       wchar_t *mydocsdirw;
       HMODULE shfolder = LoadLibrary("shfolder.dll");
       if(shfolder)
-        qSHGetKnownFolderPath = GetProcAddress("SHGetKnownFolderPath");
+        qSHGetKnownFolderPath = GetProcAddress(shfolder, "SHGetKnownFolderPath");
       else
         qSHGetKnownFolderPath = NULL;
       CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);