From c707b2d936d9d0dae7b2bde361f8fa2d818ef775 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Wed, 9 Nov 2016 22:24:42 +0000 Subject: [PATCH] addendum to r73180 (aka, fix the build) svn path=/trunk/; revision=73183 --- rostests/apitests/shell32/shlexec.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rostests/apitests/shell32/shlexec.cpp b/rostests/apitests/shell32/shlexec.cpp index 18c7c32f959..e479545c6a8 100644 --- a/rostests/apitests/shell32/shlexec.cpp +++ b/rostests/apitests/shell32/shlexec.cpp @@ -26,10 +26,10 @@ CreateAppPathRegKey(const WCHAR* Name) wcscpy(Buffer, L"Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\"); wcscat(Buffer, L"IEXPLORE.EXE"); Result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, Buffer, 0, KEY_READ, &RegistryKey); - if (Result != ERROR_SUCCESS) trace("Could not open iexplore.exe key. Status: %d\n", Result); + if (Result != ERROR_SUCCESS) trace("Could not open iexplore.exe key. Status: %lu\n", Result); if (Result) goto end; Result = RegQueryValueExW(RegistryKey, NULL, NULL, NULL, (LPBYTE)KeyValue, &Length); - if (Result != ERROR_SUCCESS) trace("Could not read iexplore.exe key. Status: %d\n", Result); + if (Result != ERROR_SUCCESS) trace("Could not read iexplore.exe key. Status: %lu\n", Result); if (Result) goto end; RegCloseKey(RegistryKey); @@ -37,10 +37,10 @@ CreateAppPathRegKey(const WCHAR* Name) wcscat(Buffer, Name); Result = RegCreateKeyExW(HKEY_LOCAL_MACHINE, Buffer, 0, NULL, 0, KEY_WRITE, NULL, &RegistryKey, &Disposition); - if (Result != ERROR_SUCCESS) trace("Could not create test key. Status: %d\n", Result); + if (Result != ERROR_SUCCESS) trace("Could not create test key. Status: %lu\n", Result); if (Result) goto end; Result = RegSetValueW(RegistryKey, NULL, REG_SZ, KeyValue, 0); - if (Result != ERROR_SUCCESS) trace("Could not set value of the test key. Status: %d\n", Result); + if (Result != ERROR_SUCCESS) trace("Could not set value of the test key. Status: %lu\n", Result); if (Result) goto end; RegCloseKey(RegistryKey); end: @@ -57,7 +57,7 @@ DeleteAppPathRegKey(const WCHAR* Name) wcscpy(Buffer, L"Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\"); wcscat(Buffer, Name); Result = RegDeleteKeyW(HKEY_LOCAL_MACHINE, Buffer); - if (Result != ERROR_SUCCESS) trace("Could not remove the test key. Status: %d\n", Result); + if (Result != ERROR_SUCCESS) trace("Could not remove the test key. Status: %lu\n", Result); } static @@ -74,11 +74,11 @@ TestShellExecuteEx(const WCHAR* Name, BOOL ExpectedResult) ShellExecInfo.lpFile = Name; ShellExecInfo.lpDirectory = NULL; Result = ShellExecuteExW(&ShellExecInfo); - ok(Result == ExpectedResult, "ShellExecuteEx lpFile %s failed. Error: %d\n", wine_dbgstr_w(Name), GetLastError()); + ok(Result == ExpectedResult, "ShellExecuteEx lpFile %s failed. Error: %lu\n", wine_dbgstr_w(Name), GetLastError()); if (ShellExecInfo.hProcess) { Result = TerminateProcess(ShellExecInfo.hProcess, 0); - if (!Result) trace("Terminate process failed. Error: %d\n", GetLastError()); + if (!Result) trace("Terminate process failed. Error: %lu\n", GetLastError()); WaitForSingleObject(ShellExecInfo.hProcess, INFINITE); CloseHandle(ShellExecInfo.hProcess); }