scrrun: Use the available 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
556ba38dd1
commit
0194896aa5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue