From 161ac2adf2972cc3fd633af022ef97adc385e32f Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 12 Jul 2007 16:35:13 +0000 Subject: [PATCH] fixed bug #1752328 - PFNSHGETFOLDERPATHA is stub only and very Windows, move from Platform.h to util.c git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5197 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/Platform.h | 3 --- Source/exehead/util.c | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) 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) {