Update Helpers.cpp

This commit is contained in:
Filip Olszak
2021-05-26 15:47:07 +02:00
committed by GitHub
parent d5b3c9adde
commit 37a70d0666
+5 -3
View File
@@ -97,9 +97,11 @@ unsigned char* ReadProcessBlob(const char* fnamSc, DWORD* szSc)
FILE_ATTRIBUTE_NORMAL,
NULL
);
if (INVALID_HANDLE_VALUE == hFile)
return nullptr;
DWORD szFile = GetFileSize(hFile, NULL);
SIZE_T szFile = GetFileSize(hFile, NULL);
*szSc = szFile;
unsigned char* raw = new unsigned char[szFile];
@@ -166,4 +168,4 @@ void PlayHeader()
cout << header2;
Sleep(1000);
}
}
}