mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-02-01 00:24:14 -06:00
4.60 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
173c07e166
commit
c10e6b16f6
@@ -304,7 +304,7 @@ LONG CKey::EnumKeys(CSysStringVector &keyNames)
|
||||
{
|
||||
keyNames.Clear();
|
||||
CSysString keyName;
|
||||
for(UInt32 index = 0; ; index++)
|
||||
for (UInt32 index = 0; ; index++)
|
||||
{
|
||||
const UInt32 kBufferSize = MAX_PATH + 1; // 256 in ATL
|
||||
FILETIME lastWriteTime;
|
||||
@@ -312,9 +312,9 @@ LONG CKey::EnumKeys(CSysStringVector &keyNames)
|
||||
LONG result = ::RegEnumKeyEx(_object, index, keyName.GetBuffer(kBufferSize),
|
||||
(DWORD *)&nameSize, NULL, NULL, NULL, &lastWriteTime);
|
||||
keyName.ReleaseBuffer();
|
||||
if(result == ERROR_NO_MORE_ITEMS)
|
||||
if (result == ERROR_NO_MORE_ITEMS)
|
||||
break;
|
||||
if(result != ERROR_SUCCESS)
|
||||
if (result != ERROR_SUCCESS)
|
||||
return result;
|
||||
keyNames.Add(keyName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user