msdmo: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8ae0d33bb7
commit
a89880615e
|
@ -316,7 +316,7 @@ HRESULT WINAPI DMOUnregister(REFCLSID dmo, REFGUID category)
|
|||
/* remove from all categories */
|
||||
if (IsEqualGUID(category, &GUID_NULL))
|
||||
{
|
||||
DWORD index = 0, len = sizeof(catW)/sizeof(WCHAR);
|
||||
DWORD index = 0, len = ARRAY_SIZE(catW);
|
||||
|
||||
while (!RegEnumKeyExW(categorieskey, index++, catW, &len, NULL, NULL, NULL, NULL))
|
||||
hr = unregister_dmo_from_category(dmoW, catW, categorieskey);
|
||||
|
|
Loading…
Reference in New Issue