diff --git a/programs/wordpad/print.c b/programs/wordpad/print.c index 2aa642fc3d6..a62f955ff61 100644 --- a/programs/wordpad/print.c +++ b/programs/wordpad/print.c @@ -489,7 +489,7 @@ BOOL preview_isactive(void) return preview.page != 0; } -static void add_ruler_units(HDC hdcRuler, RECT* drawRect, BOOL NewMetrics, long EditLeftmost) +static void add_ruler_units(HDC hdcRuler, RECT* drawRect, BOOL NewMetrics, LONG EditLeftmost) { static HDC hdc; @@ -564,7 +564,7 @@ static void add_ruler_units(HDC hdcRuler, RECT* drawRect, BOOL NewMetrics, long BitBlt(hdcRuler, 0, 0, drawRect->right, drawRect->bottom, hdc, 0, 0, SRCAND); } -static void paint_ruler(HWND hWnd, long EditLeftmost, BOOL NewMetrics) +static void paint_ruler(HWND hWnd, LONG EditLeftmost, BOOL NewMetrics) { PAINTSTRUCT ps; HDC hdc = BeginPaint(hWnd, &ps); @@ -603,7 +603,7 @@ static void paint_ruler(HWND hWnd, long EditLeftmost, BOOL NewMetrics) LRESULT CALLBACK ruler_proc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { static WNDPROC pPrevRulerProc; - static long EditLeftmost; + static LONG EditLeftmost; static BOOL NewMetrics; switch(msg) diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c index c74d140c7ff..a8a7fb074b0 100644 --- a/programs/wordpad/wordpad.c +++ b/programs/wordpad/wordpad.c @@ -2233,7 +2233,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam) case ID_EDIT_READONLY: { - long nStyle = GetWindowLong(hwndEditor, GWL_STYLE); + LONG nStyle = GetWindowLong(hwndEditor, GWL_STYLE); if (nStyle & ES_READONLY) SendMessageW(hwndEditor, EM_SETREADONLY, 0, 0); else