mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-22 10:55:19 -04:00
[misc] add arbitrary buffer allocation to GetResource()
* If duplicate is TRUE and len is non-zero, then a buffer of len size, padded with zeroes, is allocated for the resource.
This commit is contained in:
parent
841b79f45d
commit
b8579c04da
6 changed files with 27 additions and 12 deletions
|
@ -1856,7 +1856,7 @@ LPCDLGTEMPLATE GetDialogTemplate(int Dialog_ID)
|
|||
int i;
|
||||
const char thai_id[] = "th-TH";
|
||||
size_t len;
|
||||
DWORD size;
|
||||
DWORD size = 0;
|
||||
DWORD* dwBuf;
|
||||
WCHAR* wBuf;
|
||||
LPCDLGTEMPLATE rcTemplate = (LPCDLGTEMPLATE) GetResource(hMainInstance, MAKEINTRESOURCEA(Dialog_ID),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue