Import Tk 8.6.10
This commit is contained in:
@@ -100,13 +100,13 @@ 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),
|
||||
(LPTSTR)&lpMsgBuf, 0, NULL)) {
|
||||
MessageBox(NULL, (LPTSTR) lpMsgBuf,
|
||||
TEXT("Tk_GetPixmap: Error from CreateDIBSection"),
|
||||
(LPWSTR)&lpMsgBuf, 0, NULL)) {
|
||||
MessageBoxW(NULL, (LPWSTR) lpMsgBuf,
|
||||
L"Tk_GetPixmap: Error from CreateDIBSection",
|
||||
MB_OK | MB_ICONINFORMATION);
|
||||
LocalFree(lpMsgBuf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user