Support -Werror
[reactos.git] / reactos / subsys / system / regedit / hexedit.c
index a363752..c305922 100644 (file)
@@ -21,6 +21,8 @@
 #define WIN32_LEAN_AND_MEAN     /* Exclude rarely-used stuff from Windows headers */
 #include <windows.h>
 #include <commctrl.h>
+#include <stdio.h>
+#include <stdlib.h>
 #include <tchar.h>
 
 #include "hexedit.h"
@@ -226,7 +228,7 @@ HEXEDIT_PaintLines(PHEXEDIT_DATA hed, HDC hDC, DWORD ScrollPos, DWORD First, DWO
       dx = hed->LeftMargin;
       
       /* draw address */
-      _stprintf(addr, _T("%04X"), linestart);
+      _stprintf(addr, _T("%04lX"), linestart);
       TextOut(hDC, dx, dy, addr, 4);
       
       dx += ((4 + hed->AddressSpacing) * hed->CharWidth);
@@ -273,7 +275,6 @@ HEXEDIT_PaintLines(PHEXEDIT_DATA hed, HDC hDC, DWORD ScrollPos, DWORD First, DWO
 static DWORD
 HEXEDIT_HitRegionTest(PHEXEDIT_DATA hed, POINTS pt)
 {
-  WINDOWINFO wi;
   int d;
   
   if(pt.x <= hed->LeftMargin)
@@ -478,6 +479,7 @@ HEXEDIT_HEM_SETMAXBUFFERSIZE(PHEXEDIT_DATA hed, DWORD nMaxSize)
     hed->hBuffer = LocalReAlloc(hed->hBuffer, hed->MaxBuffer, LMEM_MOVEABLE);
     HEXEDIT_Update(hed);
   }
+  return 0;
 }
 
 /*** Message Proc *************************************************************/