warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2c1a331259
commit
a1e71b1032
@ -84,7 +84,7 @@ bool wxDIB::Create(int width, int height, int depth)
|
||||
static const int infosize = sizeof(BITMAPINFOHEADER);
|
||||
|
||||
BITMAPINFO *info = (BITMAPINFO *)malloc(infosize);
|
||||
wxCHECK_MSG( info, NULL, _T("malloc(BITMAPINFO) failed") );
|
||||
wxCHECK_MSG( info, false, _T("malloc(BITMAPINFO) failed") );
|
||||
|
||||
memset(info, 0, infosize);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user