Don't return overflow if no class buffer was specified.

This commit is contained in:
Aric Stewart 2002-02-05 19:45:55 +00:00 committed by Alexandre Julliard
parent 024a0ac158
commit 20a4cc3116
1 changed files with 2 additions and 2 deletions

View File

@ -289,7 +289,7 @@ DWORD WINAPI RegEnumKeyExW( HKEY hkey, DWORD index, LPWSTR name, LPDWORD name_le
if (ft) *ft = *(FILETIME *)&info->LastWriteTime;
if (len >= *name_len || (class_len && (cls_len >= *class_len)))
if (len >= *name_len || (class && class_len && (cls_len >= *class_len)))
status = STATUS_BUFFER_OVERFLOW;
else
{
@ -352,7 +352,7 @@ DWORD WINAPI RegEnumKeyExA( HKEY hkey, DWORD index, LPSTR name, LPDWORD name_len
info->ClassLength );
if (ft) *ft = *(FILETIME *)&info->LastWriteTime;
if (len >= *name_len || (class_len && (cls_len >= *class_len)))
if (len >= *name_len || (class && class_len && (cls_len >= *class_len)))
status = STATUS_BUFFER_OVERFLOW;
else
{