You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Fix warnings in various patchsets
Correct the warning thats issued when GetLastError wsa used for %u, changed to use the standard %lx format.
This commit is contained in:
@@ -81,14 +81,14 @@ index 442ad729540..dcdac2a936a 100644
|
||||
+
|
||||
+ size1 = size2 = MAX_PATH * sizeof(WCHAR);
|
||||
+ status = pRtlQueryPackageIdentity((HANDLE)~(ULONG_PTR)3, buf1, &size1, buf2, &size2, NULL);
|
||||
+ ok(status == STATUS_NOT_FOUND, "expected STATUS_NOT_FOUND, got %08x\n", status);
|
||||
+ ok(status == STATUS_NOT_FOUND, "expected STATUS_NOT_FOUND, got %08lx\n", status);
|
||||
+
|
||||
+ CoInitializeEx(0, COINIT_APARTMENTTHREADED);
|
||||
+ hr = CoCreateInstance(&CLSID_ApplicationActivationManager, NULL, CLSCTX_LOCAL_SERVER,
|
||||
+ &IID_IApplicationActivationManager, (void **)&manager);
|
||||
+ if (FAILED(hr))
|
||||
+ {
|
||||
+ todo_wine win_skip("Failed to create ApplicationActivationManager (%x)\n", hr);
|
||||
+ todo_wine win_skip("Failed to create ApplicationActivationManager (%lx)\n", hr);
|
||||
+ goto done;
|
||||
+ }
|
||||
+
|
||||
@@ -96,28 +96,28 @@ index 442ad729540..dcdac2a936a 100644
|
||||
+ AO_NOERRORUI, &processid);
|
||||
+ if (FAILED(hr))
|
||||
+ {
|
||||
+ todo_wine win_skip("Failed to start program (%x)\n", hr);
|
||||
+ todo_wine win_skip("Failed to start program (%lx)\n", hr);
|
||||
+ IApplicationActivationManager_Release(manager);
|
||||
+ goto done;
|
||||
+ }
|
||||
+
|
||||
+ process = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION | PROCESS_TERMINATE, FALSE, processid);
|
||||
+ ok(process != NULL, "OpenProcess failed with %u\n", GetLastError());
|
||||
+ ok(process != NULL, "OpenProcess failed with %lx\n", GetLastError());
|
||||
+ ret = OpenProcessToken(process, TOKEN_QUERY, &token);
|
||||
+ ok(ret, "OpenProcessToken failed with error %u\n", GetLastError());
|
||||
+ ok(ret, "OpenProcessToken failed with error %lx\n", GetLastError());
|
||||
+
|
||||
+ size1 = size2 = MAX_PATH * sizeof(WCHAR);
|
||||
+ status = pRtlQueryPackageIdentity(token, buf1, &size1, buf2, &size2, NULL);
|
||||
+ ok(status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %08x\n", status);
|
||||
+ ok(status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %08lx\n", status);
|
||||
+
|
||||
+ ok(!memcmp(buf1, fullnameW, sizeof(fullnameW) - sizeof(WCHAR)),
|
||||
+ "Expected buf1 to begin with %s, got %s\n", wine_dbgstr_w(fullnameW), wine_dbgstr_w(buf1));
|
||||
+ ok(size1 >= sizeof(WCHAR) && !(size1 % sizeof(WCHAR)), "Unexpected size1 = %lu\n", size1);
|
||||
+ ok(buf1[size1 / sizeof(WCHAR) - 1] == 0, "Expected buf1[%lu] == 0\n", size1 / sizeof(WCHAR) - 1);
|
||||
+ ok(size1 >= sizeof(WCHAR) && !(size1 % sizeof(WCHAR)), "Unexpected size1 = %Iu\n", size1);
|
||||
+ ok(buf1[size1 / sizeof(WCHAR) - 1] == 0, "Expected buf1[%Iu] == 0\n", size1 / sizeof(WCHAR) - 1);
|
||||
+
|
||||
+ ok(!lstrcmpW(buf2, appidW), "Expected buf2 to be %s, got %s\n", wine_dbgstr_w(appidW), wine_dbgstr_w(buf2));
|
||||
+ ok(size2 >= sizeof(WCHAR) && !(size2 % sizeof(WCHAR)), "Unexpected size2 = %lu\n", size2);
|
||||
+ ok(buf2[size2 / sizeof(WCHAR) - 1] == 0, "Expected buf2[%lu] == 0\n", size2 / sizeof(WCHAR) - 1);
|
||||
+ ok(size2 >= sizeof(WCHAR) && !(size2 % sizeof(WCHAR)), "Unexpected size2 = %Iu\n", size2);
|
||||
+ ok(buf2[size2 / sizeof(WCHAR) - 1] == 0, "Expected buf2[%Iu] == 0\n", size2 / sizeof(WCHAR) - 1);
|
||||
+
|
||||
+ CloseHandle(token);
|
||||
+ TerminateProcess(process, 0);
|
||||
|
Reference in New Issue
Block a user