Alexander Nicolaysen Sørnes : wordpad: Use Unicode functions in more places.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 18 08:05:07 CDT 2007
Module: wine
Branch: master
Commit: d9a4a3bf46b886011192e35854b7d32eb6bb542b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d9a4a3bf46b886011192e35854b7d32eb6bb542b
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Thu Jun 14 20:03:04 2007 +0200
wordpad: Use Unicode functions in more places.
---
programs/wordpad/wordpad.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index 7c54fcb..1dd869b 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -85,7 +85,7 @@ static void AddButton(HWND hwndToolBar, int nImage, int nCommand)
button.fsStyle = TBSTYLE_BUTTON;
button.dwData = 0;
button.iString = -1;
- SendMessage(hwndToolBar, TB_ADDBUTTONS, 1, (LPARAM)&button);
+ SendMessageW(hwndToolBar, TB_ADDBUTTONSW, 1, (LPARAM)&button);
}
static void AddSeparator(HWND hwndToolBar)
@@ -99,7 +99,7 @@ static void AddSeparator(HWND hwndToolBar)
button.fsStyle = TBSTYLE_SEP;
button.dwData = 0;
button.iString = -1;
- SendMessage(hwndToolBar, TB_ADDBUTTONS, 1, (LPARAM)&button);
+ SendMessageW(hwndToolBar, TB_ADDBUTTONSW, 1, (LPARAM)&button);
}
static DWORD CALLBACK stream_in(DWORD_PTR cookie, LPBYTE buffer, LONG cb, LONG *pcb)
@@ -323,7 +323,7 @@ static void DoDefaultFont(void)
lstrcpyW(fmt.szFaceName, szFaceName);
- SendMessage(hEditorWnd, EM_SETCHARFORMAT, SCF_DEFAULT, (LPARAM)&fmt);
+ SendMessageW(hEditorWnd, EM_SETCHARFORMAT, SCF_DEFAULT, (LPARAM)&fmt);
}
static void update_window(void)
More information about the wine-cvs
mailing list