diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-19 19:24:47 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-19 19:24:47 (GMT) |
commit | 4801848f58e2c408b9ec56a5d1db5625447da27c (patch) | |
tree | b5200858e09317656ab75d3759e7ceb166d562da /win/tkWinPixmap.c | |
parent | 9483e2ad64759b1ee91a32ce91e1a9c89cb626f4 (diff) | |
download | tk-4801848f58e2c408b9ec56a5d1db5625447da27c.zip tk-4801848f58e2c408b9ec56a5d1db5625447da27c.tar.gz tk-4801848f58e2c408b9ec56a5d1db5625447da27c.tar.bz2 |
*A() to *W() Win32 API changes, actually the same because Tk is already compiled in UNICODE mode.
Diffstat (limited to 'win/tkWinPixmap.c')
-rw-r--r-- | win/tkWinPixmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinPixmap.c b/win/tkWinPixmap.c index 9850e26..e28f348 100644 --- a/win/tkWinPixmap.c +++ b/win/tkWinPixmap.c @@ -100,12 +100,12 @@ Tk_GetPixmap( LPVOID lpMsgBuf; repeatError = 1; - if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | + if (FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPWSTR)&lpMsgBuf, 0, NULL)) { - MessageBox(NULL, (LPWSTR) lpMsgBuf, + MessageBoxW(NULL, (LPWSTR) lpMsgBuf, L"Tk_GetPixmap: Error from CreateDIBSection", MB_OK | MB_ICONINFORMATION); LocalFree(lpMsgBuf); |