else
path_start = path;
- if((ptr = strchrW(path_start, ':')) && ptr-path_start+1 < sizeof(root)/sizeof(WCHAR)) {
+ if((ptr = strchrW(path_start, ':')) && ptr-path_start+1 < ARRAY_SIZE(root)) {
UINT type;
memcpy(root, path_start, (ptr-path_start+1)*sizeof(WCHAR));
{
static const WCHAR wszFormat[] = {'%','s','%','u',0};
- WCHAR key_name[sizeof(wszZonesKey)/sizeof(WCHAR)+12];
+ WCHAR key_name[ARRAY_SIZE(wszZonesKey) + 12];
DWORD res;
wsprintfW(key_name, wszFormat, wszZonesKey, zone);
while (!res) {
name[0] = '\0';
- len = sizeof(name) / sizeof(name[0]);
+ len = ARRAY_SIZE(name);
res = RegEnumKeyExW(hkey, used, name, &len, NULL, NULL, NULL, NULL);
if (!res) {
const WCHAR *tmp = ret_url;
/* Check and see if a "//" is after the scheme name. */
- tmp += sizeof(fileW)/sizeof(WCHAR);
+ tmp += ARRAY_SIZE(fileW);
if(*tmp != '/' || *(tmp+1) != '/')
hres = E_INVALIDARG;
}