From 816395e87748f28badaa7ca9244893b8c6520a99 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Tue, 1 Mar 2022 08:33:49 +0100 Subject: [PATCH] mscoree/tests: Enable compilation with long types. Signed-off-by: Eric Pouech Signed-off-by: Esme Povirk Signed-off-by: Alexandre Julliard --- dlls/mscoree/tests/Makefile.in | 1 - dlls/mscoree/tests/comtest.c | 44 ++++----- dlls/mscoree/tests/debugging.c | 26 +++--- dlls/mscoree/tests/metahost.c | 46 +++++----- dlls/mscoree/tests/mscoree.c | 162 ++++++++++++++++----------------- 5 files changed, 139 insertions(+), 140 deletions(-) diff --git a/dlls/mscoree/tests/Makefile.in b/dlls/mscoree/tests/Makefile.in index cb4ef4421b2..7dcd5b64113 100644 --- a/dlls/mscoree/tests/Makefile.in +++ b/dlls/mscoree/tests/Makefile.in @@ -1,4 +1,3 @@ -EXTRADEFS = -DWINE_NO_LONG_TYPES TESTDLL = mscoree.dll IMPORTS = ole32 shlwapi uuid shell32 advapi32 diff --git a/dlls/mscoree/tests/comtest.c b/dlls/mscoree/tests/comtest.c index f6dc93c1070..aa23032f18f 100644 --- a/dlls/mscoree/tests/comtest.c +++ b/dlls/mscoree/tests/comtest.c @@ -92,7 +92,7 @@ static BOOL compile_cs_to_dll(char *source_path, char *dest_path) si.cb = sizeof(si); ret = CreateProcessA(path_csc, cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); - ok(ret, "Could not create process: %u\n", GetLastError()); + ok(ret, "Could not create process: %lu\n", GetLastError()); WaitForSingleObject(pi.hProcess, 5000); CloseHandle(pi.hThread); @@ -117,13 +117,13 @@ static void run_test(BOOL expect_success) hr = CoCreateInstance(&CLSID_Test, NULL, CLSCTX_INPROC_SERVER, &IID_ITest, (void**)&test); todo_wine_if(!expect_success) - ok(hr == result_expected, "Expected %x, got %x\n", result_expected, hr); + ok(hr == result_expected, "Expected %lx, got %lx\n", result_expected, hr); if (hr == S_OK) { int i = 0; hr = ITest_Func(test, &i); - ok(hr == S_OK, "Got %x\n", hr); + ok(hr == S_OK, "Got %lx\n", hr); ok(i == 42, "Expected 42, got %d\n", i); ITest_Release(test); } @@ -131,20 +131,20 @@ static void run_test(BOOL expect_success) getClassObject = (_DllGetClassObject)GetProcAddress(hmscoree, "DllGetClassObject"); hr = getClassObject(&CLSID_Test, &IID_IClassFactory, (void **)&classFactory); todo_wine_if(!expect_success) - ok(hr == result_expected, "Expected %x, got %x\n", result_expected, hr); + ok(hr == result_expected, "Expected %lx, got %lx\n", result_expected, hr); if (hr == S_OK) { ITest *test2 = NULL; hr = IClassFactory_CreateInstance(classFactory, NULL, &IID_ITest, (void **)&test2); todo_wine_if(!expect_success) - ok(hr == S_OK, "Got %x\n", hr); + ok(hr == S_OK, "Got %lx\n", hr); if (hr == S_OK) { int i = 0; hr = ITest_Func(test2, &i); - ok(hr == S_OK, "Got %x\n", hr); + ok(hr == S_OK, "Got %lx\n", hr); ok(i == 42, "Expected 42, got %d\n", i); ITest_Release(test2); } @@ -174,28 +174,28 @@ static void run_registry_test(run_type run) RegCloseKey(hkey); return; } - ok(ret == ERROR_SUCCESS, "RegCreateKeyA returned %x\n", ret); + ok(ret == ERROR_SUCCESS, "RegCreateKeyA returned %lx\n", ret); ret = RegSetKeyValueA(hkey, "InprocServer32", NULL, REG_SZ, "mscoree.dll", 11); - ok(ret == ERROR_SUCCESS, "RegSetKeyValueA returned %x\n", ret); + ok(ret == ERROR_SUCCESS, "RegSetKeyValueA returned %lx\n", ret); ret = RegSetKeyValueA(hkey, "InprocServer32", "Assembly", REG_SZ, "comtest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", 74); - ok(ret == ERROR_SUCCESS, "RegSetKeyValueA returned %x\n", ret); + ok(ret == ERROR_SUCCESS, "RegSetKeyValueA returned %lx\n", ret); ret = RegSetKeyValueA(hkey, "InprocServer32", "Class", REG_SZ, "DLL.Test", 8); - ok(ret == ERROR_SUCCESS, "RegSetKeyValueA returned %x\n", ret); + ok(ret == ERROR_SUCCESS, "RegSetKeyValueA returned %lx\n", ret); ret = RegSetKeyValueA(hkey, "InprocServer32", "CodeBase", REG_SZ, "file:///U:/invalid/path/to/comtest.dll", 41); - ok(ret == ERROR_SUCCESS, "RegSetKeyValueA returned %x\n", ret); + ok(ret == ERROR_SUCCESS, "RegSetKeyValueA returned %lx\n", ret); hr = CoCreateInstance(&CLSID_Test, NULL, CLSCTX_INPROC_SERVER, &IID_ITest, (void**)&test); todo_wine_if(result_expected != S_OK) - ok(hr == result_expected, "Expected %x, got %x\n", result_expected, hr); + ok(hr == result_expected, "Expected %lx, got %lx\n", result_expected, hr); if (hr == S_OK) { hr = ITest_Func(test, &i); - ok(hr == S_OK, "Got %x\n", hr); + ok(hr == S_OK, "Got %lx\n", hr); ok(i == 42, "Expected 42, got %d\n", i); hr = ITest_QueryInterface(test, &IID_ITest2, (void**)&unk); - ok(hr == S_OK, "ITest_QueryInterface returned %x\n", hr); + ok(hr == S_OK, "ITest_QueryInterface returned %lx\n", hr); if (hr == S_OK) IUnknown_Release(unk); ITest_Release(test); } @@ -290,7 +290,7 @@ static void prepare_and_run_test(const char *dll_source, run_type run) context.dwFlags = ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID; handle_context = CreateActCtxA(&context); - ok(handle_context != NULL && handle_context != INVALID_HANDLE_VALUE, "run: %d, CreateActCtxA failed: %d\n", run, GetLastError()); + ok(handle_context != NULL && handle_context != INVALID_HANDLE_VALUE, "run: %d, CreateActCtxA failed: %ld\n", run, GetLastError()); if (handle_context == NULL || handle_context == INVALID_HANDLE_VALUE) { @@ -299,7 +299,7 @@ static void prepare_and_run_test(const char *dll_source, run_type run) } success = ActivateActCtx(handle_context, &cookie); - ok(success, "run: %d, ActivateActCtx failed: %d\n", run, GetLastError()); + ok(success, "run: %d, ActivateActCtx failed: %ld\n", run, GetLastError()); if (run == run_type_current_working_directory) SetCurrentDirectoryA(path_tmp); @@ -311,23 +311,23 @@ cleanup: if (handle_context != NULL && handle_context != INVALID_HANDLE_VALUE) { success = DeactivateActCtx(0, cookie); - ok(success, "run: %d, DeactivateActCtx failed: %d\n", run, GetLastError()); + ok(success, "run: %d, DeactivateActCtx failed: %ld\n", run, GetLastError()); ReleaseActCtx(handle_context); } if (*path_manifest_exe) { success = DeleteFileA(path_manifest_exe); - ok(success, "run: %d, DeleteFileA failed: %d\n", run, GetLastError()); + ok(success, "run: %d, DeleteFileA failed: %ld\n", run, GetLastError()); } if(*path_manifest_dll) { success = DeleteFileA(path_manifest_dll); - ok(success, "run: %d, DeleteFileA failed: %d\n", run, GetLastError()); + ok(success, "run: %d, DeleteFileA failed: %ld\n", run, GetLastError()); } if(*path_dll_source) { success = DeleteFileA(path_dll_source); - ok(success, "run: %d, DeleteFileA failed: %d\n", run, GetLastError()); + ok(success, "run: %d, DeleteFileA failed: %ld\n", run, GetLastError()); } RemoveDirectoryA(path_tmp_manifest); /* dll cleanup is handled by the parent, because it might still be used by the child */ @@ -350,7 +350,7 @@ static void cleanup_test(run_type run) Sleep(500); success = DeleteFileA(path_dll); } - ok(success, "DeleteFileA failed: %d\n", GetLastError()); + ok(success, "DeleteFileA failed: %ld\n", GetLastError()); } static void run_child_process(const char *dll_source, run_type run) @@ -372,7 +372,7 @@ static void run_child_process(const char *dll_source, run_type run) si.cb = sizeof(si); ret = CreateProcessA(exe, cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); - ok(ret, "Could not create process: %u\n", GetLastError()); + ok(ret, "Could not create process: %lu\n", GetLastError()); wait_child_process(pi.hProcess); diff --git a/dlls/mscoree/tests/debugging.c b/dlls/mscoree/tests/debugging.c index 251579396a9..5c17c27712c 100644 --- a/dlls/mscoree/tests/debugging.c +++ b/dlls/mscoree/tests/debugging.c @@ -410,17 +410,17 @@ static void _check_process_enum(unsigned line, ICorDebug *pCorDebug, ULONG nExpe ICorDebugProcessEnum *pProcessEnum = NULL; hr = ICorDebug_EnumerateProcesses(pCorDebug, NULL); - ok_(__FILE__,line) (hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr); + ok_(__FILE__,line) (hr == E_INVALIDARG, "expected E_INVALIDARG got %08lx\n", hr); hr = ICorDebug_EnumerateProcesses(pCorDebug, &pProcessEnum); - ok_(__FILE__,line) (hr == S_OK, "expected S_OK got %08x\n", hr); + ok_(__FILE__,line) (hr == S_OK, "expected S_OK got %08lx\n", hr); if(hr == S_OK) { ULONG cnt; hr = ICorDebugProcessEnum_GetCount(pProcessEnum, &cnt); - ok_(__FILE__,line) (hr == S_OK, "expected S_OK got %08x\n", hr); - ok_(__FILE__,line) (cnt == nExpected, "expected %d got %d\n", nExpected, cnt); + ok_(__FILE__,line) (hr == S_OK, "expected S_OK got %08lx\n", hr); + ok_(__FILE__,line) (cnt == nExpected, "expected %ld got %ld\n", nExpected, cnt); ICorDebugProcessEnum_Release(pProcessEnum); } @@ -433,36 +433,36 @@ static void test_createDebugger(void) ICorDebug *pCorDebug; hr = pCreateDebuggingInterfaceFromVersion(0, v2_0, &pUnk); - ok(hr == E_INVALIDARG, "CreateDebuggingInterfaceFromVersion returned %08x\n", hr); + ok(hr == E_INVALIDARG, "CreateDebuggingInterfaceFromVersion returned %08lx\n", hr); hr = pCreateDebuggingInterfaceFromVersion(1, v2_0, &pUnk); - ok(hr == E_INVALIDARG, "CreateDebuggingInterfaceFromVersion returned %08x\n", hr); + ok(hr == E_INVALIDARG, "CreateDebuggingInterfaceFromVersion returned %08lx\n", hr); hr = pCreateDebuggingInterfaceFromVersion(2, v2_0, &pUnk); - ok(hr == E_INVALIDARG, "CreateDebuggingInterfaceFromVersion returned %08x\n", hr); + ok(hr == E_INVALIDARG, "CreateDebuggingInterfaceFromVersion returned %08lx\n", hr); hr = pCreateDebuggingInterfaceFromVersion(4, v2_0, &pUnk); - ok(hr == E_INVALIDARG, "CreateDebuggingInterfaceFromVersion returned %08x\n", hr); + ok(hr == E_INVALIDARG, "CreateDebuggingInterfaceFromVersion returned %08lx\n", hr); hr = pCreateDebuggingInterfaceFromVersion(3, v2_0, NULL); - ok(hr == E_INVALIDARG, "CreateDebuggingInterfaceFromVersion returned %08x\n", hr); + ok(hr == E_INVALIDARG, "CreateDebuggingInterfaceFromVersion returned %08lx\n", hr); hr = pCreateDebuggingInterfaceFromVersion(3, v2_0, &pUnk); if(hr == S_OK) { hr = IUnknown_QueryInterface(pUnk, &IID_ICorDebug, (void**)&pCorDebug); - ok(hr == S_OK, "expected S_OK got %08x\n", hr); + ok(hr == S_OK, "expected S_OK got %08lx\n", hr); if(hr == S_OK) { hr = ICorDebug_Initialize(pCorDebug); - ok(hr == S_OK, "expected S_OK got %08x\n", hr); + ok(hr == S_OK, "expected S_OK got %08lx\n", hr); if(hr == S_OK) { hr = ICorDebug_SetManagedHandler(pCorDebug, NULL); - ok(hr == E_INVALIDARG, "expected E_INVALIDARG got %08x\n", hr); + ok(hr == E_INVALIDARG, "expected E_INVALIDARG got %08lx\n", hr); hr = ICorDebug_SetManagedHandler(pCorDebug, &ManagedCallback); - ok(hr == S_OK, "expected S_OK got %08x\n", hr); + ok(hr == S_OK, "expected S_OK got %08lx\n", hr); /* We should have no processes */ check_process_enum(pCorDebug, 0); diff --git a/dlls/mscoree/tests/metahost.c b/dlls/mscoree/tests/metahost.c index b6b0608e9d4..1c96f8c4fb0 100644 --- a/dlls/mscoree/tests/metahost.c +++ b/dlls/mscoree/tests/metahost.c @@ -84,16 +84,16 @@ static void test_getruntime(WCHAR *version) WCHAR buf[MAX_PATH]; hr = ICLRMetaHost_GetRuntime(metahost, NULL, &IID_ICLRRuntimeInfo, (void**)&info); - ok(hr == E_POINTER, "GetVersion failed, hr=%x\n", hr); + ok(hr == E_POINTER, "GetVersion failed, hr=%lx\n", hr); hr = ICLRMetaHost_GetRuntime(metahost, version, &IID_ICLRRuntimeInfo, (void**)&info); - ok(hr == S_OK, "GetVersion failed, hr=%x\n", hr); + ok(hr == S_OK, "GetVersion failed, hr=%lx\n", hr); if (hr != S_OK) return; count = MAX_PATH; hr = ICLRRuntimeInfo_GetVersionString(info, buf, &count); - ok(hr == S_OK, "GetVersionString returned %x\n", hr); - ok(count == lstrlenW(buf)+1, "GetVersionString returned count %u but string of length %u\n", count, lstrlenW(buf)+1); + ok(hr == S_OK, "GetVersionString returned %lx\n", hr); + ok(count == lstrlenW(buf)+1, "GetVersionString returned count %lu but string of length %u\n", count, lstrlenW(buf)+1); ok(lstrcmpW(buf, version) == 0, "got unexpected version %s\n", wine_dbgstr_w(buf)); ICLRRuntimeInfo_Release(info); @@ -102,7 +102,7 @@ static void test_getruntime(WCHAR *version) dot = wcsrchr(version, '.'); lstrcpyW(dot, dotzero); hr = ICLRMetaHost_GetRuntime(metahost, version, &IID_ICLRRuntimeInfo, (void**)&info); - ok(hr == CLR_E_SHIM_RUNTIME, "GetVersion failed, hr=%x\n", hr); + ok(hr == CLR_E_SHIM_RUNTIME, "GetVersion failed, hr=%lx\n", hr); } static void test_enumruntimes(void) @@ -115,28 +115,28 @@ static void test_enumruntimes(void) WCHAR buf[MAX_PATH]; hr = ICLRMetaHost_EnumerateInstalledRuntimes(metahost, &runtime_enum); - ok(hr == S_OK, "EnumerateInstalledRuntimes returned %x\n", hr); + ok(hr == S_OK, "EnumerateInstalledRuntimes returned %lx\n", hr); if (FAILED(hr)) return; while ((hr = IEnumUnknown_Next(runtime_enum, 1, &unk, &count)) == S_OK) { hr = IUnknown_QueryInterface(unk, &IID_ICLRRuntimeInfo, (void**)&runtime_info); - ok(hr == S_OK, "QueryInterface returned %x\n", hr); + ok(hr == S_OK, "QueryInterface returned %lx\n", hr); count = 1; hr = ICLRRuntimeInfo_GetVersionString(runtime_info, buf, &count); - ok(hr == E_NOT_SUFFICIENT_BUFFER, "GetVersionString returned %x\n", hr); - ok(count > 1, "GetVersionString returned count %u\n", count); + ok(hr == E_NOT_SUFFICIENT_BUFFER, "GetVersionString returned %lx\n", hr); + ok(count > 1, "GetVersionString returned count %lu\n", count); count = 0xdeadbeef; hr = ICLRRuntimeInfo_GetVersionString(runtime_info, NULL, &count); - ok(hr == S_OK, "GetVersionString returned %x\n", hr); - ok(count > 1 && count != 0xdeadbeef, "GetVersionString returned count %u\n", count); + ok(hr == S_OK, "GetVersionString returned %lx\n", hr); + ok(count > 1 && count != 0xdeadbeef, "GetVersionString returned count %lu\n", count); count = MAX_PATH; hr = ICLRRuntimeInfo_GetVersionString(runtime_info, buf, &count); - ok(hr == S_OK, "GetVersionString returned %x\n", hr); - ok(count > 1, "GetVersionString returned count %u\n", count); + ok(hr == S_OK, "GetVersionString returned %lx\n", hr); + ok(count > 1, "GetVersionString returned count %lu\n", count); trace("runtime found: %s\n", wine_dbgstr_w(buf)); @@ -146,7 +146,7 @@ static void test_enumruntimes(void) test_getruntime(buf); } - ok(hr == S_FALSE, "IEnumUnknown_Next returned %x\n", hr); + ok(hr == S_FALSE, "IEnumUnknown_Next returned %lx\n", hr); IEnumUnknown_Release(runtime_enum); } @@ -169,19 +169,19 @@ static void WINAPI notification_callback(ICLRRuntimeInfo *pRuntimeInfo, Callback if (expect_runtime_tid != 0) { ok(GetCurrentThreadId() == expect_runtime_tid, - "expected call on thread %04x, got thread %04x\n", expect_runtime_tid, GetCurrentThreadId()); + "expected call on thread %04lx, got thread %04lx\n", expect_runtime_tid, GetCurrentThreadId()); expect_runtime_tid = 0; } hr = ICLRRuntimeInfo_GetVersionString(pRuntimeInfo, buf, &buf_size); - ok(hr == S_OK, "GetVersion returned %x\n", hr); + ok(hr == S_OK, "GetVersion returned %lx\n", hr); ok(lstrcmpW(buf, v4_0) == 0, "GetVersion returned %s\n", wine_dbgstr_w(buf)); hr = pfnCallbackThreadSet(); - ok(hr == S_OK, "pfnCallbackThreadSet returned %x\n", hr); + ok(hr == S_OK, "pfnCallbackThreadSet returned %lx\n", hr); hr = pfnCallbackThreadUnset(); - ok(hr == S_OK, "pfnCallbackThreadUnset returned %x\n", hr); + ok(hr == S_OK, "pfnCallbackThreadUnset returned %lx\n", hr); } static void test_notification(void) @@ -189,13 +189,13 @@ static void test_notification(void) HRESULT hr; hr = ICLRMetaHost_RequestRuntimeLoadedNotification(metahost, NULL); - ok(hr == E_POINTER, "RequestRuntimeLoadedNotification returned %x\n", hr); + ok(hr == E_POINTER, "RequestRuntimeLoadedNotification returned %lx\n", hr); hr = ICLRMetaHost_RequestRuntimeLoadedNotification(metahost,notification_callback); - ok(hr == S_OK, "RequestRuntimeLoadedNotification failed, hr=%x\n", hr); + ok(hr == S_OK, "RequestRuntimeLoadedNotification failed, hr=%lx\n", hr); hr = ICLRMetaHost_RequestRuntimeLoadedNotification(metahost,notification_dummy_callback); - ok(hr == HOST_E_INVALIDOPERATION, "RequestRuntimeLoadedNotification returned %x\n", hr); + ok(hr == HOST_E_INVALIDOPERATION, "RequestRuntimeLoadedNotification returned %lx\n", hr); } static void test_notification_cb(void) @@ -205,12 +205,12 @@ static void test_notification_cb(void) ICLRRuntimeHost *host; hr = ICLRMetaHost_GetRuntime(metahost, v4_0, &IID_ICLRRuntimeInfo, (void**)&info); - ok(hr == S_OK, "GetRuntime returned %x\n", hr); + ok(hr == S_OK, "GetRuntime returned %lx\n", hr); expect_runtime_tid = GetCurrentThreadId(); hr = ICLRRuntimeInfo_GetInterface(info, &CLSID_CLRRuntimeHost, &IID_ICLRRuntimeHost, (void**)&host); - todo_wine_if(!has_mono) ok(hr == S_OK, "GetInterface returned %x\n", hr); + todo_wine_if(!has_mono) ok(hr == S_OK, "GetInterface returned %lx\n", hr); todo_wine if(!has_mono) ok(expect_runtime_tid == 0, "notification_callback was not called\n"); if(has_mono) diff --git a/dlls/mscoree/tests/mscoree.c b/dlls/mscoree/tests/mscoree.c index 92126339ef0..b49465fb16f 100644 --- a/dlls/mscoree/tests/mscoree.c +++ b/dlls/mscoree/tests/mscoree.c @@ -101,23 +101,23 @@ static int check_runtime(void) win_skip("CLRCreateInstance not implemented\n"); return 1; } - ok(SUCCEEDED(hr), "CLRCreateInstance failed, hr=%#.8x\n", hr); + ok(SUCCEEDED(hr), "CLRCreateInstance failed, hr=%#.8lx\n", hr); if (FAILED(hr)) return 1; hr = ICLRMetaHost_GetRuntime(metahost, v4_0, &IID_ICLRRuntimeInfo, (void **)&runtimeinfo); - ok(SUCCEEDED(hr), "ICLRMetaHost::GetRuntime failed, hr=%#.8x\n", hr); + ok(SUCCEEDED(hr), "ICLRMetaHost::GetRuntime failed, hr=%#.8lx\n", hr); if (FAILED(hr)) return 1; hr = ICLRRuntimeInfo_GetInterface(runtimeinfo, &CLSID_CorRuntimeHost, &IID_ICorRuntimeHost, (void **)&runtimehost); - todo_wine_if(!has_mono) ok(SUCCEEDED(hr), "ICLRRuntimeInfo::GetInterface failed, hr=%#.8x\n", hr); + todo_wine_if(!has_mono) ok(SUCCEEDED(hr), "ICLRRuntimeInfo::GetInterface failed, hr=%#.8lx\n", hr); if (FAILED(hr)) return 1; hr = ICorRuntimeHost_Start(runtimehost); - ok(SUCCEEDED(hr), "ICorRuntimeHost::Start failed, hr=%#.8x\n", hr); + ok(SUCCEEDED(hr), "ICorRuntimeHost::Start failed, hr=%#.8lx\n", hr); if (FAILED(hr)) return 1; @@ -187,7 +187,7 @@ static void test_versioninfo(void) if (0) /* crashes on <= w2k3 */ { hr = pGetCORVersion(NULL, MAX_PATH, &size); - ok(hr == E_POINTER,"GetCORVersion returned %08x\n", hr); + ok(hr == E_POINTER,"GetCORVersion returned %08lx\n", hr); } hr = pGetCORVersion(version, 1, &size); @@ -198,31 +198,31 @@ static void test_versioninfo(void) return; } - ok(hr == E_NOT_SUFFICIENT_BUFFER, "GetCORVersion returned %08x\n", hr); + ok(hr == E_NOT_SUFFICIENT_BUFFER, "GetCORVersion returned %08lx\n", hr); hr = pGetCORVersion(version, MAX_PATH, &size); - ok(hr == S_OK,"GetCORVersion returned %08x\n", hr); + ok(hr == S_OK,"GetCORVersion returned %08lx\n", hr); trace("latest installed .net runtime: %s\n", wine_dbgstr_w(version)); hr = pGetCORSystemDirectory(path, MAX_PATH , &size); - todo_wine_if(!has_mono) ok(hr == S_OK, "GetCORSystemDirectory returned %08x\n", hr); + todo_wine_if(!has_mono) ok(hr == S_OK, "GetCORSystemDirectory returned %08lx\n", hr); /* size includes terminating null-character */ - todo_wine_if(!has_mono) ok(size == (lstrlenW(path) + 1),"size is %d instead of %d\n", size, (lstrlenW(path) + 1)); + todo_wine_if(!has_mono) ok(size == (lstrlenW(path) + 1),"size is %ld instead of %d\n", size, (lstrlenW(path) + 1)); path_len = size; hr = pGetCORSystemDirectory(path, path_len-1 , &size); - todo_wine_if(!has_mono) ok(hr == E_NOT_SUFFICIENT_BUFFER, "GetCORSystemDirectory returned %08x\n", hr); + todo_wine_if(!has_mono) ok(hr == E_NOT_SUFFICIENT_BUFFER, "GetCORSystemDirectory returned %08lx\n", hr); if (0) /* crashes on <= w2k3 */ { hr = pGetCORSystemDirectory(NULL, MAX_PATH , &size); - ok(hr == E_NOT_SUFFICIENT_BUFFER, "GetCORSystemDirectory returned %08x\n", hr); + ok(hr == E_NOT_SUFFICIENT_BUFFER, "GetCORSystemDirectory returned %08lx\n", hr); } hr = pGetCORSystemDirectory(path, MAX_PATH , NULL); - ok(hr == E_POINTER,"GetCORSystemDirectory returned %08x\n", hr); + ok(hr == E_POINTER,"GetCORSystemDirectory returned %08lx\n", hr); trace("latest installed .net installed in directory: %s\n", wine_dbgstr_w(path)); @@ -231,43 +231,43 @@ static void test_versioninfo(void) if(hr == CLR_E_SHIM_RUNTIME) return; /* skipping rest of tests on win2k as .net 2.0 not installed */ - todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08x\n", hr); + todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08lx\n", hr); trace(" installed in directory %s is .net version %s\n", wine_dbgstr_w(path), wine_dbgstr_w(version)); hr = pGetRequestedRuntimeInfo( NULL, v1_1, NULL, 0, 0, path, MAX_PATH, &path_len, version, MAX_PATH, &size); - todo_wine_if(!has_mono) ok(hr == S_OK || hr == CLR_E_SHIM_RUNTIME /*v1_1 not installed*/, "GetRequestedRuntimeInfo returned %08x\n", hr); + todo_wine_if(!has_mono) ok(hr == S_OK || hr == CLR_E_SHIM_RUNTIME /*v1_1 not installed*/, "GetRequestedRuntimeInfo returned %08lx\n", hr); if(hr == S_OK) trace(" installed in directory %s is .net version %s\n", wine_dbgstr_w(path), wine_dbgstr_w(version)); /* version number NULL not allowed without RUNTIME_INFO_UPGRADE_VERSION flag */ hr = pGetRequestedRuntimeInfo( NULL, NULL, NULL, 0, 0, path, MAX_PATH, &path_len, version, MAX_PATH, &size); - ok(hr == CLR_E_SHIM_RUNTIME, "GetRequestedRuntimeInfo returned %08x\n", hr); + ok(hr == CLR_E_SHIM_RUNTIME, "GetRequestedRuntimeInfo returned %08lx\n", hr); /* with RUNTIME_INFO_UPGRADE_VERSION flag and version number NULL, latest installed version is returned */ hr = pGetRequestedRuntimeInfo( NULL, NULL, NULL, 0, RUNTIME_INFO_UPGRADE_VERSION, path, MAX_PATH, &path_len, version, MAX_PATH, &size); - todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08x\n", hr); + todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08lx\n", hr); hr = pGetRequestedRuntimeInfo( NULL, v2_0, NULL, 0, 0, path, 1, &path_len, version, MAX_PATH, &size); - todo_wine_if(!has_mono) ok(hr == E_NOT_SUFFICIENT_BUFFER, "GetRequestedRuntimeInfo returned %08x\n", hr); + todo_wine_if(!has_mono) ok(hr == E_NOT_SUFFICIENT_BUFFER, "GetRequestedRuntimeInfo returned %08lx\n", hr); /* if one of the buffers is NULL, the other one is still happily filled */ memset(version, 0, sizeof(version)); hr = pGetRequestedRuntimeInfo( NULL, v2_0, NULL, 0, 0, NULL, MAX_PATH, &path_len, version, MAX_PATH, &size); - todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08x\n", hr); + todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08lx\n", hr); ok(!wcscmp(version, v2_0), "version is %s , expected %s\n", wine_dbgstr_w(version), wine_dbgstr_w(v2_0)); /* With NULL-pointer for bufferlength, the buffer itself still gets filled with correct string */ memset(version, 0, sizeof(version)); hr = pGetRequestedRuntimeInfo( NULL, v2_0, NULL, 0, 0, path, MAX_PATH, &path_len, version, MAX_PATH, NULL); - todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08x\n", hr); + todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08lx\n", hr); ok(!wcscmp(version, v2_0), "version is %s , expected %s\n", wine_dbgstr_w(version), wine_dbgstr_w(v2_0)); memset(version, 0, sizeof(version)); hr = pGetRequestedRuntimeInfo( NULL, v2_0cap, NULL, 0, 0, path, MAX_PATH, &path_len, version, MAX_PATH, NULL); - todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08x\n", hr); + todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08lx\n", hr); ok(!wcscmp(version, v2_0cap), "version is %s , expected %s\n", wine_dbgstr_w(version), wine_dbgstr_w(v2_0cap)); /* Invalid Version and RUNTIME_INFO_UPGRADE_VERSION flag*/ memset(version, 0, sizeof(version)); hr = pGetRequestedRuntimeInfo( NULL, v1_1, NULL, 0, RUNTIME_INFO_UPGRADE_VERSION, path, MAX_PATH, &path_len, version, MAX_PATH, NULL); - todo_wine_if(!has_mono) ok(hr == S_OK || hr == CLR_E_SHIM_RUNTIME , "GetRequestedRuntimeInfo returned %08x\n", hr); + todo_wine_if(!has_mono) ok(hr == S_OK || hr == CLR_E_SHIM_RUNTIME , "GetRequestedRuntimeInfo returned %08lx\n", hr); if(hr == S_OK) { /* .NET 1.1 may not be installed. */ @@ -278,28 +278,28 @@ static void test_versioninfo(void) memset(version, 0, sizeof(version)); hr = pGetRequestedRuntimeInfo( NULL, v9_0, NULL, 0, RUNTIME_INFO_UPGRADE_VERSION, path, MAX_PATH, &path_len, version, MAX_PATH, NULL); - ok(hr == CLR_E_SHIM_RUNTIME, "GetRequestedRuntimeInfo returned %08x\n", hr); + ok(hr == CLR_E_SHIM_RUNTIME, "GetRequestedRuntimeInfo returned %08lx\n", hr); memset(version, 0, sizeof(version)); hr = pGetRequestedRuntimeInfo( NULL, v1_1_0, NULL, 0, 0, path, MAX_PATH, &path_len, version, MAX_PATH, NULL); - ok(hr == CLR_E_SHIM_RUNTIME, "GetRequestedRuntimeInfo returned %08x\n", hr); + ok(hr == CLR_E_SHIM_RUNTIME, "GetRequestedRuntimeInfo returned %08lx\n", hr); memset(version, 0, sizeof(version)); hr = pGetRequestedRuntimeInfo( NULL, v1_1_0, NULL, 0, RUNTIME_INFO_UPGRADE_VERSION, path, MAX_PATH, &path_len, version, MAX_PATH, NULL); - todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08x\n", hr); + todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08lx\n", hr); ok(!wcscmp(version, v2_0), "version is %s , expected %s\n", wine_dbgstr_w(version), wine_dbgstr_w(v2_0)); memset(version, 0, sizeof(version)); hr = pGetRequestedRuntimeInfo( NULL, v2_0_0, NULL, 0, 0, path, MAX_PATH, &path_len, version, MAX_PATH, NULL); - ok(hr == CLR_E_SHIM_RUNTIME, "GetRequestedRuntimeInfo returned %08x\n", hr); + ok(hr == CLR_E_SHIM_RUNTIME, "GetRequestedRuntimeInfo returned %08lx\n", hr); memset(version, 0, sizeof(version)); hr = pGetRequestedRuntimeInfo( NULL, v2_0_0, NULL, 0, RUNTIME_INFO_UPGRADE_VERSION, path, MAX_PATH, &path_len, version, MAX_PATH, NULL); - todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08x\n", hr); + todo_wine_if(!has_mono) ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08lx\n", hr); ok(!wcscmp(version, v2_0), "version is %s , expected %s\n", wine_dbgstr_w(version), wine_dbgstr_w(v2_0)); hr = pCorIsLatestSvc(NULL, NULL); - ok(hr == E_POINTER, "CorIsLatestSvc returned %08x\n", hr); + ok(hr == E_POINTER, "CorIsLatestSvc returned %08lx\n", hr); } static void test_loadlibraryshim(void) @@ -324,7 +324,7 @@ static void test_loadlibraryshim(void) } hr = pLoadLibraryShim(fusion, v1_1, NULL, &hdll); - ok(hr == S_OK || hr == E_HANDLE, "LoadLibraryShim failed, hr=%x\n", hr); + ok(hr == S_OK || hr == E_HANDLE, "LoadLibraryShim failed, hr=%lx\n", hr); if (SUCCEEDED(hr)) { latest = v1_1; @@ -338,7 +338,7 @@ static void test_loadlibraryshim(void) } hr = pLoadLibraryShim(fusion, v2_0, NULL, &hdll); - ok(hr == S_OK || hr == E_HANDLE, "LoadLibraryShim failed, hr=%x\n", hr); + ok(hr == S_OK || hr == E_HANDLE, "LoadLibraryShim failed, hr=%lx\n", hr); if (SUCCEEDED(hr)) { latest = v2_0; @@ -352,7 +352,7 @@ static void test_loadlibraryshim(void) } hr = pLoadLibraryShim(fusion, v4_0, NULL, &hdll); - ok(hr == S_OK || hr == E_HANDLE, "LoadLibraryShim failed, hr=%x\n", hr); + ok(hr == S_OK || hr == E_HANDLE, "LoadLibraryShim failed, hr=%lx\n", hr); if (SUCCEEDED(hr)) { /* LoadLibraryShim with a NULL version prefers 2.0 and earlier */ @@ -368,14 +368,14 @@ static void test_loadlibraryshim(void) } hr = pLoadLibraryShim(fusion, vbogus, NULL, &hdll); - ok(hr == E_HANDLE, "LoadLibraryShim failed, hr=%x\n", hr); + ok(hr == E_HANDLE, "LoadLibraryShim failed, hr=%lx\n", hr); if (SUCCEEDED(hr)) FreeLibrary(hdll); WideCharToMultiByte(CP_ACP, 0, latest, -1, latestA, MAX_PATH, NULL, NULL); hr = pLoadLibraryShim(fusion, NULL, NULL, &hdll); - ok(hr == S_OK, "LoadLibraryShim failed, hr=%x\n", hr); + ok(hr == S_OK, "LoadLibraryShim failed, hr=%lx\n", hr); if (SUCCEEDED(hr)) { GetModuleFileNameA(hdll, dllpath, MAX_PATH); @@ -388,7 +388,7 @@ static void test_loadlibraryshim(void) } hr = pLoadLibraryShim(fusiondll, NULL, NULL, &hdll); - ok(hr == S_OK, "LoadLibraryShim failed, hr=%x\n", hr); + ok(hr == S_OK, "LoadLibraryShim failed, hr=%lx\n", hr); if (SUCCEEDED(hr)) { GetModuleFileNameA(hdll, dllpath, MAX_PATH); @@ -401,12 +401,12 @@ static void test_loadlibraryshim(void) } hr = pLoadLibraryShim(nosuchdll, latest, NULL, &hdll); - ok(hr == E_HANDLE, "LoadLibraryShim failed, hr=%x\n", hr); + ok(hr == E_HANDLE, "LoadLibraryShim failed, hr=%lx\n", hr); if (SUCCEEDED(hr)) FreeLibrary(hdll); hr = pLoadLibraryShim(gdidll, latest, NULL, &hdll); - ok(hr == E_HANDLE, "LoadLibraryShim failed, hr=%x\n", hr); + ok(hr == E_HANDLE, "LoadLibraryShim failed, hr=%lx\n", hr); if (SUCCEEDED(hr)) FreeLibrary(hdll); } @@ -451,20 +451,20 @@ static void test_createconfigstream(void) ok(hr == E_FAIL || broken(hr == HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND)) || /* some WinXP, Win2K3 and Win7 */ broken(hr == S_OK && !stream), /* some Win2K3 */ - "CreateConfigStream returned %x\n", hr); + "CreateConfigStream returned %lx\n", hr); hr = pCreateConfigStream(path, NULL); - ok(hr == COR_E_NULLREFERENCE, "CreateConfigStream returned %x\n", hr); + ok(hr == COR_E_NULLREFERENCE, "CreateConfigStream returned %lx\n", hr); hr = pCreateConfigStream(NULL, NULL); - ok(hr == COR_E_NULLREFERENCE, "CreateConfigStream returned %x\n", hr); + ok(hr == COR_E_NULLREFERENCE, "CreateConfigStream returned %lx\n", hr); hr = pCreateConfigStream(nonexistent, &stream); - ok(hr == COR_E_FILENOTFOUND, "CreateConfigStream returned %x\n", hr); + ok(hr == COR_E_FILENOTFOUND, "CreateConfigStream returned %lx\n", hr); ok(stream == NULL, "Expected stream to be NULL\n"); hr = pCreateConfigStream(path, &stream); - ok(hr == S_OK, "CreateConfigStream failed, hr=%x\n", hr); + ok(hr == S_OK, "CreateConfigStream failed, hr=%lx\n", hr); ok(stream != NULL, "Expected non-NULL stream\n"); if (stream) @@ -476,36 +476,36 @@ static void test_createconfigstream(void) ULONG ref; hr = IStream_Read(stream, buffer, strlen(xmldata), &count); - ok(hr == S_OK, "IStream_Read failed, hr=%x\n", hr); - ok(count == strlen(xmldata), "wrong count: %u\n", count); + ok(hr == S_OK, "IStream_Read failed, hr=%lx\n", hr); + ok(count == strlen(xmldata), "wrong count: %lu\n", count); ok(!strcmp(buffer, xmldata), "Strings do not match\n"); hr = IStream_Read(stream, buffer, sizeof(buffer), &count); - ok(hr == S_OK, "IStream_Read failed, hr=%x\n", hr); - ok(!count, "wrong count: %u\n", count); + ok(hr == S_OK, "IStream_Read failed, hr=%lx\n", hr); + ok(!count, "wrong count: %lu\n", count); hr = IStream_Write(stream, xmldata, strlen(xmldata), &count); - ok(hr == E_FAIL, "IStream_Write returned hr=%x\n", hr); + ok(hr == E_FAIL, "IStream_Write returned hr=%lx\n", hr); pos.QuadPart = strlen(xmldata); hr = IStream_Seek(stream, pos, STREAM_SEEK_SET, NULL); - ok(hr == E_NOTIMPL, "IStream_Seek returned hr=%x\n", hr); + ok(hr == E_NOTIMPL, "IStream_Seek returned hr=%lx\n", hr); size.QuadPart = strlen(xmldata); hr = IStream_SetSize(stream, size); - ok(hr == E_NOTIMPL, "IStream_SetSize returned hr=%x\n", hr); + ok(hr == E_NOTIMPL, "IStream_SetSize returned hr=%lx\n", hr); hr = IStream_Clone(stream, &stream2); - ok(hr == E_NOTIMPL, "IStream_Clone returned hr=%x\n", hr); + ok(hr == E_NOTIMPL, "IStream_Clone returned hr=%lx\n", hr); hr = IStream_Commit(stream, STGC_DEFAULT); - ok(hr == E_NOTIMPL, "IStream_Commit returned hr=%x\n", hr); + ok(hr == E_NOTIMPL, "IStream_Commit returned hr=%lx\n", hr); hr = IStream_Revert(stream); - ok(hr == E_NOTIMPL, "IStream_Revert returned hr=%x\n", hr); + ok(hr == E_NOTIMPL, "IStream_Revert returned hr=%lx\n", hr); ref = IStream_Release(stream); - ok(!ref, "IStream_Release returned %u\n", ref); + ok(!ref, "IStream_Release returned %lu\n", ref); } DeleteFileW(file); } @@ -581,7 +581,7 @@ static BOOL compile_cs(const WCHAR *source, const WCHAR *target, const WCHAR *ty si.cb = sizeof(si); ret = CreateProcessW(csc, cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); - ok(ret, "Could not create process: %u\n", GetLastError()); + ok(ret, "Could not create process: %lu\n", GetLastError()); wait_child_process(pi.hProcess); CloseHandle(pi.hThread); @@ -606,24 +606,24 @@ static void test_loadpaths_execute(const WCHAR *exe_name, const WCHAR *dll_name, GetTempPathW(MAX_PATH, tmp); ret = AllocateLocallyUniqueId(&id); - ok(ret, "AllocateLocallyUniqueId failed: %u\n", GetLastError()); + ok(ret, "AllocateLocallyUniqueId failed: %lu\n", GetLastError()); ret = GetTempFileNameW(tmp, L"loadpaths", id.LowPart, tmpdir); - ok(ret, "GetTempFileNameW failed: %u\n", GetLastError()); + ok(ret, "GetTempFileNameW failed: %lu\n", GetLastError()); ret = CreateDirectoryW(tmpdir, NULL); - ok(ret, "CreateDirectoryW(%s) failed: %u\n", debugstr_w(tmpdir), GetLastError()); + ok(ret, "CreateDirectoryW(%s) failed: %lu\n", debugstr_w(tmpdir), GetLastError()); wcscpy(tmpexe, tmpdir); PathAppendW(tmpexe, exe_name); ret = CopyFileW(exe_name, tmpexe, FALSE); - ok(ret, "CopyFileW(%s) failed: %u\n", debugstr_w(tmpexe), GetLastError()); + ok(ret, "CopyFileW(%s) failed: %lu\n", debugstr_w(tmpexe), GetLastError()); if (cfg_name) { wcscpy(tmpcfg, tmpdir); PathAppendW(tmpcfg, cfg_name); ret = CopyFileW(cfg_name, tmpcfg, FALSE); - ok(ret, "CopyFileW(%s) failed: %u\n", debugstr_w(tmpcfg), GetLastError()); + ok(ret, "CopyFileW(%s) failed: %lu\n", debugstr_w(tmpcfg), GetLastError()); } ptr = tmpdir + wcslen(tmpdir); @@ -632,7 +632,7 @@ static void test_loadpaths_execute(const WCHAR *exe_name, const WCHAR *dll_name, { *ptr = '\0'; ret = CreateDirectoryW(tmpdir, NULL); - ok(ret, "CreateDirectoryW(%s) failed: %u\n", debugstr_w(tmpdir), GetLastError()); + ok(ret, "CreateDirectoryW(%s) failed: %lu\n", debugstr_w(tmpdir), GetLastError()); *ptr = '\\'; } @@ -640,17 +640,17 @@ static void test_loadpaths_execute(const WCHAR *exe_name, const WCHAR *dll_name, if ((ptr = wcsrchr(tmpdir, '\\'))) *ptr = '\0'; ret = CopyFileW(dll_name, tmpdll, FALSE); - ok(ret, "CopyFileW(%s) failed: %u\n", debugstr_w(tmpdll), GetLastError()); + ok(ret, "CopyFileW(%s) failed: %lu\n", debugstr_w(tmpdll), GetLastError()); si.cb = sizeof(si); ret = CreateProcessW(tmpexe, tmpexe, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); - ok(ret, "CreateProcessW(%s) failed: %u\n", debugstr_w(tmpexe), GetLastError()); + ok(ret, "CreateProcessW(%s) failed: %lu\n", debugstr_w(tmpexe), GetLastError()); if (expect_failure) ret = WaitForSingleObject(pi.hProcess, 2000); else { ret = WaitForSingleObject(pi.hProcess, 5000); - ok(ret == WAIT_OBJECT_0, "%s: WaitForSingleObject returned %d: %u\n", debugstr_w(dll_dest), ret, GetLastError()); + ok(ret == WAIT_OBJECT_0, "%s: WaitForSingleObject returned %d: %lu\n", debugstr_w(dll_dest), ret, GetLastError()); } GetExitCodeProcess(pi.hProcess, &exit_code); @@ -667,19 +667,19 @@ static void test_loadpaths_execute(const WCHAR *exe_name, const WCHAR *dll_name, if (cfg_name) { ret = DeleteFileW(tmpcfg); - ok(ret, "DeleteFileW(%s) failed: %u\n", debugstr_w(tmpcfg), GetLastError()); + ok(ret, "DeleteFileW(%s) failed: %lu\n", debugstr_w(tmpcfg), GetLastError()); } ret = DeleteFileW(tmpdll); - ok(ret, "DeleteFileW(%s) failed: %u\n", debugstr_w(tmpdll), GetLastError()); + ok(ret, "DeleteFileW(%s) failed: %lu\n", debugstr_w(tmpdll), GetLastError()); ret = DeleteFileW(tmpexe); - ok(ret, "DeleteFileW(%s) failed: %u\n", debugstr_w(tmpexe), GetLastError()); + ok(ret, "DeleteFileW(%s) failed: %lu\n", debugstr_w(tmpexe), GetLastError()); end = tmpdir + wcslen(tmp); ptr = tmpdir + wcslen(tmpdir) - 1; while (ptr > end && (ptr = wcsrchr(tmpdir, '\\'))) { ret = RemoveDirectoryW(tmpdir); - ok(ret, "RemoveDirectoryW(%s) failed: %u\n", debugstr_w(tmpdir), GetLastError()); + ok(ret, "RemoveDirectoryW(%s) failed: %lu\n", debugstr_w(tmpdir), GetLastError()); *ptr = '\0'; } } @@ -698,25 +698,25 @@ static void test_loadpaths(BOOL neutral) DeleteFileW(dll_source); ret = write_resource(dll_source, dll_source); - ok(ret, "Could not write resource: %u\n", GetLastError()); + ok(ret, "Could not write resource: %lu\n", GetLastError()); DeleteFileW(dll_name); ret = compile_cs(dll_source, dll_name, L"library", neutral ? L"-define:NEUTRAL" : L""); if (!ret) return; ret = DeleteFileW(dll_source); - ok(ret, "DeleteFileW failed: %u\n", GetLastError()); + ok(ret, "DeleteFileW failed: %lu\n", GetLastError()); DeleteFileW(exe_source); ret = write_resource(exe_source, exe_source); - ok(ret, "Could not write resource: %u\n", GetLastError()); + ok(ret, "Could not write resource: %lu\n", GetLastError()); DeleteFileW(exe_name); ret = compile_cs(exe_source, exe_name, L"exe", L"/reference:libloadpaths.dll"); if (!ret) return; ret = DeleteFileW(exe_source); - ok(ret, "DeleteFileW failed: %u\n", GetLastError()); + ok(ret, "DeleteFileW failed: %lu\n", GetLastError()); DeleteFileW(cfg_name); ret = write_resource(cfg_name, cfg_name); - ok(ret, "Could not write resource: %u\n", GetLastError()); + ok(ret, "Could not write resource: %lu\n", GetLastError()); for (i = 0; i < ARRAY_SIZE(loadpaths); ++i) { @@ -754,11 +754,11 @@ static void test_loadpaths(BOOL neutral) } ret = DeleteFileW(cfg_name); - ok(ret, "DeleteFileW failed: %u\n", GetLastError()); + ok(ret, "DeleteFileW failed: %lu\n", GetLastError()); ret = DeleteFileW(exe_name); - ok(ret, "DeleteFileW failed: %u\n", GetLastError()); + ok(ret, "DeleteFileW failed: %lu\n", GetLastError()); ret = DeleteFileW(dll_name); - ok(ret, "DeleteFileW failed: %u\n", GetLastError()); + ok(ret, "DeleteFileW failed: %lu\n", GetLastError()); } static void test_createdomain(void) @@ -779,20 +779,20 @@ static void test_createdomain(void) } hr = pCLRCreateInstance(&CLSID_CLRMetaHost, &IID_ICLRMetaHost, (void **)&metahost); - ok(SUCCEEDED(hr), "CLRCreateInstance failed, hr=%#.8x\n", hr); + ok(SUCCEEDED(hr), "CLRCreateInstance failed, hr=%#.8lx\n", hr); hr = ICLRMetaHost_GetRuntime(metahost, v4_0, &IID_ICLRRuntimeInfo, (void **)&runtimeinfo); - ok(SUCCEEDED(hr), "ICLRMetaHost::GetRuntime failed, hr=%#.8x\n", hr); + ok(SUCCEEDED(hr), "ICLRMetaHost::GetRuntime failed, hr=%#.8lx\n", hr); hr = ICLRRuntimeInfo_GetInterface(runtimeinfo, &CLSID_CorRuntimeHost, &IID_ICorRuntimeHost, (void **)&runtimehost); - ok(SUCCEEDED(hr), "ICLRRuntimeInfo::GetInterface failed, hr=%#.8x\n", hr); + ok(SUCCEEDED(hr), "ICLRRuntimeInfo::GetInterface failed, hr=%#.8lx\n", hr); hr = ICorRuntimeHost_Start(runtimehost); - ok(SUCCEEDED(hr), "ICorRuntimeHost::Start failed, hr=%#.8x\n", hr); + ok(SUCCEEDED(hr), "ICorRuntimeHost::Start failed, hr=%#.8lx\n", hr); hr = ICorRuntimeHost_GetDefaultDomain(runtimehost, &domain); - ok(SUCCEEDED(hr), "ICorRuntimeHost::GetDefaultDomain failed, hr=%#.8x\n", hr); + ok(SUCCEEDED(hr), "ICorRuntimeHost::GetDefaultDomain failed, hr=%#.8lx\n", hr); hr = IUnknown_QueryInterface(domain, &IID_IUnknown, (void **)&defaultdomain_unk); ok(SUCCEEDED(hr), "COM object doesn't support IUnknown?!\n"); @@ -803,7 +803,7 @@ static void test_createdomain(void) IUnknown_Release(domain); hr = ICorRuntimeHost_CreateDomain(runtimehost, test_name, NULL, &domain); - ok(SUCCEEDED(hr), "ICorRuntimeHost::CreateDomain failed, hr=%#.8x\n", hr); + ok(SUCCEEDED(hr), "ICorRuntimeHost::CreateDomain failed, hr=%#.8lx\n", hr); hr = IUnknown_QueryInterface(domain, &IID_IUnknown, (void **)&newdomain_unk); ok(SUCCEEDED(hr), "COM object doesn't support IUnknown?!\n"); @@ -816,10 +816,10 @@ static void test_createdomain(void) ok(defaultdomain_unk != newdomain_unk, "New and default domain objects are the same\n"); hr = ICorRuntimeHost_CreateDomainSetup(runtimehost, &domainsetup); - ok(SUCCEEDED(hr), "ICorRuntimeHost::CreateDomainSetup failed, hr=%#.8x\n", hr); + ok(SUCCEEDED(hr), "ICorRuntimeHost::CreateDomainSetup failed, hr=%#.8lx\n", hr); hr = ICorRuntimeHost_CreateDomainEx(runtimehost, test2_name, domainsetup, NULL, &domain); - ok(SUCCEEDED(hr), "ICorRuntimeHost::CreateDomainEx failed, hr=%#.8x\n", hr); + ok(SUCCEEDED(hr), "ICorRuntimeHost::CreateDomainEx failed, hr=%#.8lx\n", hr); hr = IUnknown_QueryInterface(domain, &IID_IUnknown, (void **)&newdomain2_unk); ok(SUCCEEDED(hr), "COM object doesn't support IUnknown?!\n");