Commit acefa93c authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

mmdevapi: Fixed buffer size passed to RegEnumKeyExW.

parent aa16c89b
......@@ -950,7 +950,7 @@ HRESULT MMDevEnum_Create(REFIID riid, void **ppv)
DWORD len;
PROPVARIANT pv = { VT_EMPTY };
len = sizeof(guidvalue);
len = sizeof(guidvalue)/sizeof(guidvalue[0]);
ret = RegEnumKeyExW(cur, i++, guidvalue, &len, NULL, NULL, NULL, NULL);
if (ret == ERROR_NO_MORE_ITEMS)
{
......
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