Module: wine Branch: master Commit: 645486e8c23de988b900b6d39b0406bb56fb18b9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=645486e8c23de988b900b6d39b...
Author: Michael Stefaniuc mstefani@redhat.de Date: Tue Apr 7 10:02:07 2009 +0200
wordpad: Replace long with LONG.
---
programs/wordpad/print.c | 6 +++--- programs/wordpad/wordpad.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/programs/wordpad/print.c b/programs/wordpad/print.c index 2aa642f..a62f955 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 c74d140..a8a7fb0 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