Patch by Jonathon Wilson:
[reactos.git] / reactos / apps / tests / hotkey / hotkey.c
index ba805b7..63c1d92 100644 (file)
@@ -1,5 +1,6 @@
 #include <windows.h>
 #include <stdio.h>
+#include <string.h>
 
 //HFONT tf;
 LRESULT WINAPI MainWndProc(HWND, UINT, WPARAM, LPARAM);
@@ -26,7 +27,7 @@ WinMain(HINSTANCE hInstance,
   wc.cbWndExtra = 0;
   if (RegisterClass(&wc) == 0)
     {
-      fprintf(stderr, "RegisterClass failed (last error 0x%X)\n",
+      fprintf(stderr, "RegisterClass failed (last error 0x%lX)\n",
              GetLastError());
       return(1);
     }
@@ -44,7 +45,7 @@ WinMain(HINSTANCE hInstance,
                      NULL);
   if (hWnd == NULL)
     {
-      fprintf(stderr, "CreateWindow failed (last error 0x%X)\n",
+      fprintf(stderr, "CreateWindow failed (last error 0x%lX)\n",
              GetLastError());
       return(1);
     }
@@ -73,8 +74,6 @@ LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 {
        PAINTSTRUCT ps;
        HDC hDC;
-       RECT clr, wir;
-        char spr[100], sir[100];
 
        switch(msg)
        {