mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +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;
|
||||
}
|
||||
|
||||
RegPidlEntry* entry = (RegPidlEntry*) CoTaskMemAlloc(entryBufferLength + 2);
|
||||
// allocate space for the terminator
|
||||
entryBufferLength += 2;
|
||||
|
||||
RegPidlEntry* entry = (RegPidlEntry*) CoTaskMemAlloc(entryBufferLength);
|
||||
if (!entry)
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
|
|
Loading…
Reference in a new issue