mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 07:11:16 +00:00
likely malloc is an operator new
This commit is contained in:
parent
dd318a3295
commit
95bb105817
@ -105,7 +105,7 @@ MxResult MxBitmap::LoadFile(HANDLE p_handle)
|
||||
|
||||
ret = ReadFile(p_handle, &hdr, sizeof(hdr), &bytesRead, NULL);
|
||||
if (ret && (hdr.bfType == g_bitmapSignature)) {
|
||||
this->m_info = (BITMAPINFO*) malloc(1064);
|
||||
this->m_info = new BITMAPINFO;
|
||||
if(this->m_info) {
|
||||
ret = ReadFile(p_handle, this->m_info, 1064, &bytesRead, NULL);
|
||||
if (ret && ((this->m_info->bmiHeader).biBitCount == 8)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user