Commit 630dc0f5 authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

Use the W version of the function were we can.

parent 63cf3e2c
...@@ -2281,7 +2281,7 @@ BOOL WINAPI PeekMessageW( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT f ...@@ -2281,7 +2281,7 @@ BOOL WINAPI PeekMessageW( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT f
/* need to fill the window handle for WM_PAINT message */ /* need to fill the window handle for WM_PAINT message */
if (msg.message == WM_PAINT) if (msg.message == WM_PAINT)
{ {
if (IsIconic( msg.hwnd ) && GetClassLongA( msg.hwnd, GCL_HICON )) if (IsIconic( msg.hwnd ) && GetClassLongW( msg.hwnd, GCL_HICON ))
{ {
msg.message = WM_PAINTICON; msg.message = WM_PAINTICON;
msg.wParam = 1; msg.wParam = 1;
......
...@@ -127,7 +127,7 @@ static void *map_fileW( LPCWSTR name ) ...@@ -127,7 +127,7 @@ static void *map_fileW( LPCWSTR name )
OPEN_EXISTING, FILE_FLAG_RANDOM_ACCESS, 0 ); OPEN_EXISTING, FILE_FLAG_RANDOM_ACCESS, 0 );
if (hFile != INVALID_HANDLE_VALUE) if (hFile != INVALID_HANDLE_VALUE)
{ {
hMapping = CreateFileMappingA( hFile, NULL, PAGE_READONLY, 0, 0, NULL ); hMapping = CreateFileMappingW( hFile, NULL, PAGE_READONLY, 0, 0, NULL );
CloseHandle( hFile ); CloseHandle( hFile );
if (hMapping) if (hMapping)
{ {
......
...@@ -777,7 +777,7 @@ INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM *plpara ...@@ -777,7 +777,7 @@ INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM *plpara
xs->lpszClass = xs->cs.lpszClass = usBuffer.Buffer; xs->lpszClass = xs->cs.lpszClass = usBuffer.Buffer;
} }
if (GetWindowLongA(hwnd, GWL_EXSTYLE) & WS_EX_MDICHILD) if (GetWindowLongW(hwnd, GWL_EXSTYLE) & WS_EX_MDICHILD)
{ {
MDICREATESTRUCTW *mdi_cs = (MDICREATESTRUCTW *)HeapAlloc(GetProcessHeap(), 0, MDICREATESTRUCTW *mdi_cs = (MDICREATESTRUCTW *)HeapAlloc(GetProcessHeap(), 0,
sizeof(*mdi_cs)); sizeof(*mdi_cs));
...@@ -962,7 +962,7 @@ LRESULT WINPROC_UnmapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa ...@@ -962,7 +962,7 @@ LRESULT WINPROC_UnmapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
if (xs->lpszName) HeapFree( GetProcessHeap(), 0, xs->lpszName ); if (xs->lpszName) HeapFree( GetProcessHeap(), 0, xs->lpszName );
if (xs->lpszClass) HeapFree( GetProcessHeap(), 0, xs->lpszClass ); if (xs->lpszClass) HeapFree( GetProcessHeap(), 0, xs->lpszClass );
if (GetWindowLongA(hwnd, GWL_EXSTYLE) & WS_EX_MDICHILD) if (GetWindowLongW(hwnd, GWL_EXSTYLE) & WS_EX_MDICHILD)
{ {
MDICREATESTRUCTW *mdi_cs = (MDICREATESTRUCTW *)xs->cs.lpCreateParams; MDICREATESTRUCTW *mdi_cs = (MDICREATESTRUCTW *)xs->cs.lpCreateParams;
if (HIWORD(mdi_cs->szTitle)) if (HIWORD(mdi_cs->szTitle))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment