Added Visual Studio compatible accelerators

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7279 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2021-07-10 18:23:54 +00:00
parent dad57e638d
commit 6498e46d70
2 changed files with 6 additions and 2 deletions

View file

@ -64,7 +64,7 @@ template<class T> static ULARGE_INTEGER PathParseIconLocationEx(T*Path)
return (li.HighPart = (UINT) comma, li.LowPart = idx, li);
}
template<class T> static int WINAPI PathParseIconLocationFallback(T*Path)
static int WINAPI PathParseIconLocationFallback(LPSTR Path)
{
ULARGE_INTEGER li = PathParseIconLocationEx(Path);
return li.LowPart;
@ -353,7 +353,7 @@ INT_PTR ShowLookupDialog(HWND hOwner)
if (!dd.PPIL || (SupportsWNT4() || IsWin9598ME()))
{
(FARPROC&) dd.PPIL = GetSysProcAddr("SHELL32", (LPCSTR) 249); // WNT4+ PathParseIconLocationT
if (sizeof(TCHAR) == 1) (FARPROC&) dd.PPIL = (FARPROC) PathParseIconLocationFallback<CHAR>;
if (sizeof(TCHAR) == 1) (FARPROC&) dd.PPIL = (FARPROC) PathParseIconLocationFallback;
}
#endif