Fixed the "Can't open file" message in ReadDIB so that it actually
displays the filename instead of garbage. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b207457ce7
commit
40c7a5fc4e
@ -436,7 +436,7 @@ BOOL ReadDIB(LPSTR lpFileName, HBITMAP *bitmap, HPALETTE *palette)
|
||||
|
||||
fh = OpenFile (lpFileName, &of, OF_READ);
|
||||
if (fh == -1) {
|
||||
wsprintf(str,"Can't open file '%ls'", (LPSTR)lpFileName);
|
||||
wsprintf(str,"Can't open file '%s'", lpFileName);
|
||||
MessageBox(NULL, str, "Error", MB_ICONSTOP | MB_OK);
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user