diff --git a/Source/Platform.h b/Source/Platform.h index dbeead09..1fadc47f 100644 --- a/Source/Platform.h +++ b/Source/Platform.h @@ -867,9 +867,6 @@ typedef struct tagVS_FIXEDFILEINFO { # pragma pack() #endif -// ShGetFolderPath -typedef HRESULT (__stdcall * PFNSHGETFOLDERPATHA)(HWND, int, HANDLE, DWORD, LPSTR); - #ifndef SHGFP_TYPE_CURRENT #define SHGFP_TYPE_CURRENT 0 #endif diff --git a/Source/exehead/util.c b/Source/exehead/util.c index e4cfa5e1..ef7d34f7 100644 --- a/Source/exehead/util.c +++ b/Source/exehead/util.c @@ -596,6 +596,8 @@ char ps_tmpbuf[NSIS_MAX_STRLEN*2]; const char SYSREGKEY[] = "Software\\Microsoft\\Windows\\CurrentVersion"; const char QUICKLAUNCH[] = "\\Microsoft\\Internet Explorer\\Quick Launch"; +typedef HRESULT (__stdcall * PFNSHGETFOLDERPATHA)(HWND, int, HANDLE, DWORD, LPSTR); + // Based on Dave Laundon's simplified process_string char * NSISCALL GetNSISString(char *outbuf, int strtab) {