Import Tk 8.6.10

This commit is contained in:
Steve Dower
2020-09-24 22:55:34 +01:00
parent 5ba5cbc9af
commit 42c69189d9
365 changed files with 24323 additions and 12832 deletions

View File

@@ -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);
}