]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
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 d168c77de22d17513379ad7cf4c34a253b65a1c0..00b5bad73170d332f085d282b4c82cc786c547e4 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);