mirror of
https://github.com/reactos/reactos.git
synced 2024-06-26 16:01:36 +00:00
[WINESYNC] setupapi: Use sizeof() instead of numerical constants for buffer sizes.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id 01080e6750abcad22ac30df0e4efe669b458f8ab by Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
90985f90f3
commit
d2a1c13b49
|
@ -971,7 +971,7 @@ BOOL WINAPI SetupDiClassGuidsFromNameExW(
|
|||
|
||||
for (dwIndex = 0; ; dwIndex++)
|
||||
{
|
||||
dwLength = 40;
|
||||
dwLength = sizeof(szKeyName) / sizeof(WCHAR);
|
||||
lError = RegEnumKeyExW(hClassesKey,
|
||||
dwIndex,
|
||||
szKeyName,
|
||||
|
@ -995,7 +995,7 @@ BOOL WINAPI SetupDiClassGuidsFromNameExW(
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
dwLength = MAX_CLASS_NAME_LEN * sizeof(WCHAR);
|
||||
dwLength = sizeof(szClassName);
|
||||
if (!RegQueryValueExW(hClassKey,
|
||||
REGSTR_VAL_CLASS,
|
||||
NULL,
|
||||
|
|
|
@ -5,4 +5,4 @@ files:
|
|||
dlls/setupapi/misc.c: dll/win32/setupapi/misc.c
|
||||
dlls/setupapi/stubs.c: dll/win32/setupapi/stubs.c
|
||||
tags:
|
||||
wine: 1ce40299941f03fb14ca73e771c1d6ea0090165a
|
||||
wine: 01080e6750abcad22ac30df0e4efe669b458f8ab
|
||||
|
|
Loading…
Reference in a new issue