Imported Tk 8.6.9

This commit is contained in:
Steve Dower
2018-12-11 10:05:28 -08:00
parent 753ac6b037
commit 5ba5cbc9af
184 changed files with 6223 additions and 1994 deletions

View File

@@ -100,13 +100,13 @@ Tk_GetPixmap(
LPVOID lpMsgBuf;
repeatError = 1;
if (FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPSTR) &lpMsgBuf, 0, NULL)) {
MessageBoxA(NULL, (LPCSTR) lpMsgBuf,
"Tk_GetPixmap: Error from CreateDIBSection",
(LPTSTR)&lpMsgBuf, 0, NULL)) {
MessageBox(NULL, (LPTSTR) lpMsgBuf,
TEXT("Tk_GetPixmap: Error from CreateDIBSection"),
MB_OK | MB_ICONINFORMATION);
LocalFree(lpMsgBuf);
}