From: Rudolf Polzer Date: Mon, 16 May 2011 04:37:38 +0000 (+0200) Subject: fix GetProcAddress usage X-Git-Tag: xonotic-v0.5.0~25 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=dec339b67ca2ba8a3b521859d1992e634d3c127a;p=xonotic%2Fnetradiant.git fix GetProcAddress usage --- diff --git a/radiant/mainframe.cpp b/radiant/mainframe.cpp index d168c77d..00b5bad7 100644 --- a/radiant/mainframe.cpp +++ b/radiant/mainframe.cpp @@ -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);