mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:36:04 +00:00
[NTOBJSHEX]
Fix crash showing registry keys that have values. CORE-13456 #resolve svn path=/trunk/; revision=75156
This commit is contained in:
parent
6af2c49b5f
commit
3832e3a6d8
1 changed files with 4 additions and 1 deletions
|
@ -437,7 +437,10 @@ public:
|
||||||
otype = REG_ENTRY_VALUE_WITH_CONTENT;
|
otype = REG_ENTRY_VALUE_WITH_CONTENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
RegPidlEntry* entry = (RegPidlEntry*) CoTaskMemAlloc(entryBufferLength + 2);
|
// allocate space for the terminator
|
||||||
|
entryBufferLength += 2;
|
||||||
|
|
||||||
|
RegPidlEntry* entry = (RegPidlEntry*) CoTaskMemAlloc(entryBufferLength);
|
||||||
if (!entry)
|
if (!entry)
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue