[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:
winesync 2024-01-05 20:45:43 +01:00 committed by Hermès Bélusca-Maïto
parent 90985f90f3
commit d2a1c13b49
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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