[ROSTESTS]

Fix 0x%lu specifier.
Add cmake file for notificationtest.

svn path=/trunk/; revision=69436
This commit is contained in:
Sylvain Petreolle 2015-10-03 22:21:19 +00:00
parent f24e24d07c
commit 1a33bc3cdf
4 changed files with 10 additions and 9 deletions

View file

@ -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);

View file

@ -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);

View file

@ -0,0 +1 @@
add_subdirectory(kernel32)

View file

@ -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;\
}