Commit 0194896a authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

scrrun: Use the available ARRAY_SIZE() macro.

parent 556ba38d
......@@ -1001,7 +1001,7 @@ static HRESULT WINAPI drive_get_VolumeName(IDrive *iface, BSTR *name)
return E_POINTER;
*name = NULL;
ret = GetVolumeInformationW(This->root, nameW, sizeof(nameW)/sizeof(WCHAR), NULL, NULL, NULL, NULL, 0);
ret = GetVolumeInformationW(This->root, nameW, ARRAY_SIZE(nameW), NULL, NULL, NULL, NULL, 0);
if (ret)
*name = SysAllocString(nameW);
return ret ? S_OK : E_FAIL;
......@@ -1026,7 +1026,7 @@ static HRESULT WINAPI drive_get_FileSystem(IDrive *iface, BSTR *fs)
return E_POINTER;
*fs = NULL;
ret = GetVolumeInformationW(This->root, NULL, 0, NULL, NULL, NULL, nameW, sizeof(nameW)/sizeof(WCHAR));
ret = GetVolumeInformationW(This->root, NULL, 0, NULL, NULL, NULL, nameW, ARRAY_SIZE(nameW));
if (ret)
*fs = SysAllocString(nameW);
return ret ? S_OK : E_FAIL;
......
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