mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 20:19:26 +00:00
[ROSTESTS]
Fix 0x%lu specifier. Add cmake file for notificationtest. svn path=/trunk/; revision=69436
This commit is contained in:
parent
f24e24d07c
commit
1a33bc3cdf
4 changed files with 10 additions and 9 deletions
|
@ -63,7 +63,7 @@ int main(int argc, char* argv[])
|
|||
if (FileHandle == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
|
||||
printf("Open failed last err 0x%lu\n",GetLastError());
|
||||
printf("Open failed last err 0x%lx\n",GetLastError());
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ int main(int argc, char* argv[])
|
|||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
printf("Read failed status 0x%lu\n",Status);
|
||||
printf("Read failed status 0x%lx\n",Status);
|
||||
}
|
||||
printf("Waiting\n");
|
||||
WaitForSingleObjectEx(EventHandle, INFINITE, TRUE);
|
||||
|
|
|
@ -31,7 +31,7 @@ WinMain(HINSTANCE hInstance,
|
|||
wc.cbWndExtra = 0;
|
||||
if (RegisterClassW(&wc) == 0)
|
||||
{
|
||||
fprintf(stderr, "RegisterClassW failed (last error 0x%lu)\n",
|
||||
fprintf(stderr, "RegisterClassW failed (last error 0x%lx)\n",
|
||||
GetLastError());
|
||||
return 1;
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ WinMain(HINSTANCE hInstance,
|
|||
NULL);
|
||||
if (hWnd == NULL)
|
||||
{
|
||||
fprintf(stderr, "CreateWindowA failed (last error 0x%lu)\n",
|
||||
fprintf(stderr, "CreateWindowA failed (last error 0x%lx)\n",
|
||||
GetLastError());
|
||||
return 1;
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ WinMain(HINSTANCE hInstance,
|
|||
printf("Calling GetWindowTextW\n");
|
||||
if (! GetWindowTextW(hWnd, WindowTextW, sizeof(WindowTextW) / sizeof(WindowTextW[0])))
|
||||
{
|
||||
fprintf(stderr, "GetWindowTextW failed (last error 0x%lu)\n", GetLastError());
|
||||
fprintf(stderr, "GetWindowTextW failed (last error 0x%lx)\n", GetLastError());
|
||||
return 1;
|
||||
}
|
||||
printf("GetWindowTextW returned Unicode string \"%S\"\n", WindowTextW);
|
||||
|
@ -68,7 +68,7 @@ WinMain(HINSTANCE hInstance,
|
|||
printf("Calling GetWindowTextA\n");
|
||||
if (! GetWindowTextA(hWnd, WindowTextA, sizeof(WindowTextA) / sizeof(WindowTextA[0])))
|
||||
{
|
||||
fprintf(stderr, "GetWindowTextA failed (last error 0x%lu)\n", GetLastError());
|
||||
fprintf(stderr, "GetWindowTextA failed (last error 0x%lx)\n", GetLastError());
|
||||
return 1;
|
||||
}
|
||||
printf("GetWindowTextA returned Ansi string \"%s\"\n", WindowTextA);
|
||||
|
@ -89,7 +89,7 @@ WinMain(HINSTANCE hInstance,
|
|||
printf("Calling GetWindowTextW\n");
|
||||
if (! GetWindowTextW(hWnd, WindowTextW, sizeof(WindowTextW) / sizeof(WindowTextW[0])))
|
||||
{
|
||||
fprintf(stderr, "GetWindowTextW failed (last error 0x%lu)\n", GetLastError());
|
||||
fprintf(stderr, "GetWindowTextW failed (last error 0x%lx)\n", GetLastError());
|
||||
return 1;
|
||||
}
|
||||
printf("GetWindowTextW returned Unicode string \"%S\"\n", WindowTextW);
|
||||
|
@ -104,7 +104,7 @@ WinMain(HINSTANCE hInstance,
|
|||
printf("Calling GetWindowTextW\n");
|
||||
if (! GetWindowTextW(hWnd, WindowTextW, sizeof(WindowTextW) / sizeof(WindowTextW[0])))
|
||||
{
|
||||
fprintf(stderr, "GetWindowTextW failed (last error 0x%lu)\n", GetLastError());
|
||||
fprintf(stderr, "GetWindowTextW failed (last error 0x%lx)\n", GetLastError());
|
||||
return 1;
|
||||
}
|
||||
printf("GetWindowTextW returned Unicode string \"%S\"\n", WindowTextW);
|
||||
|
|
1
rostests/win32/CMakeLists.txt
Normal file
1
rostests/win32/CMakeLists.txt
Normal file
|
@ -0,0 +1 @@
|
|||
add_subdirectory(kernel32)
|
|
@ -15,7 +15,7 @@ BOOL WINAPI QueueUserWorkItem(LPTHREAD_START_ROUTINE,PVOID,ULONG);
|
|||
#define TestProc(n) \
|
||||
DWORD CALLBACK TestProc##n(void *ctx)\
|
||||
{\
|
||||
printf("TestProc%d thread 0x%lu context 0x%p\n", n, GetCurrentThreadId(), ctx);\
|
||||
printf("TestProc%d thread 0x%lx context 0x%p\n", n, GetCurrentThreadId(), ctx);\
|
||||
return 0;\
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue