1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

dbghelp: Return early if HeapAlloc failed.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56223
This commit is contained in:
Bernhard Übelacker 2024-01-20 14:21:16 +01:00 committed by Alexandre Julliard
parent b89d9f3145
commit c3ef1a6c67

View file

@ -3036,6 +3036,7 @@ static void* pdb_jg_read(const struct PDB_JG_HEADER* pdb, const WORD* block_list
num_blocks = (size + pdb->block_size - 1) / pdb->block_size;
buffer = HeapAlloc(GetProcessHeap(), 0, num_blocks * pdb->block_size);
if (!buffer) return NULL;
for (i = 0; i < num_blocks; i++)
memcpy(buffer + i * pdb->block_size,
@ -3054,6 +3055,7 @@ static void* pdb_ds_read(const struct PDB_DS_HEADER* pdb, const UINT *block_list
num_blocks = (size + pdb->block_size - 1) / pdb->block_size;
buffer = HeapAlloc(GetProcessHeap(), 0, num_blocks * pdb->block_size);
if (!buffer) return NULL;
for (i = 0; i < num_blocks; i++)
memcpy(buffer + i * pdb->block_size,