Commit 01080e67 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

setupapi: Use sizeof() instead of numerical constants for buffer sizes.

parent 0bfb97dc
......@@ -903,7 +903,7 @@ BOOL WINAPI SetupDiClassGuidsFromNameExW(
for (dwIndex = 0; ; dwIndex++)
{
dwLength = 40;
dwLength = sizeof(szKeyName) / sizeof(WCHAR);
lError = RegEnumKeyExW(hClassesKey,
dwIndex,
szKeyName,
......@@ -927,7 +927,7 @@ BOOL WINAPI SetupDiClassGuidsFromNameExW(
return FALSE;
}
dwLength = 256 * sizeof(WCHAR);
dwLength = sizeof(szClassName);
if (!RegQueryValueExW(hClassKey,
Class,
NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment