[APPLICATIONS] Fix 64 bit issues

This commit is contained in:
Timo Kreuzer 2018-03-04 16:12:18 +01:00
parent 807331436e
commit 6f13066647
16 changed files with 31 additions and 28 deletions

View file

@ -142,10 +142,12 @@ RunCommand(IN LPCWSTR lpszCommand,
lpszExpandedCommand = (LPWSTR)MemAlloc(0, dwNumOfChars * sizeof(WCHAR));
ExpandEnvironmentStringsW(lpszCommand, lpszExpandedCommand, dwNumOfChars);
dwRes = (DWORD)ShellExecuteW(NULL, NULL /* and not L"open" !! */,
lpszExpandedCommand,
lpszParameters,
NULL, nShowCmd);
dwRes = (DWORD_PTR)ShellExecuteW(NULL,
NULL /* and not L"open" !! */,
lpszExpandedCommand,
lpszParameters,
NULL,
nShowCmd);
MemFree(lpszExpandedCommand);
return dwRes;