if (!wci->m_wc.lpszClassName)
{
static const WCHAR szFormat[] = {'A','T','L','%','0','8','l','x',0};
- snprintfW(wci->m_szAutoName, sizeof(wci->m_szAutoName)/sizeof(WCHAR), szFormat, (UINT_PTR)wci);
+ snprintfW(wci->m_szAutoName, ARRAY_SIZE(wci->m_szAutoName), szFormat, (UINT_PTR)wci);
TRACE("auto-generated class name %s\n", debugstr_w(wci->m_szAutoName));
wci->m_wc.lpszClassName = wci->m_szAutoName;
}
if ( GET_WORD(tmp) == '{' ) /* all this mess created because of this line */
{
static const WCHAR AtlAxWin[] = {'A','t','l','A','x','W','i','n', 0};
- PUT_BLOCK(AtlAxWin, sizeof(AtlAxWin)/sizeof(WCHAR));
+ PUT_BLOCK(AtlAxWin, ARRAY_SIZE(AtlAxWin));
PUT_BLOCK(tmp, strlenW(tmp)+1);
} else
PUT_BLOCK(tmp, src-tmp);
hres = DISP_E_EXCEPTION;
break;
}
- for(i=0; i<sizeof(root_keys)/sizeof(root_keys[0]); i++) {
+ for(i=0; i<ARRAY_SIZE(root_keys); i++) {
if(!lstrcmpiW(buf.str, root_keys[i].name))
break;
}
- if(i == sizeof(root_keys)/sizeof(root_keys[0])) {
+ if(i == ARRAY_SIZE(root_keys)) {
WARN("Wrong root key name: %s\n", debugstr_w(buf.str));
hres = DISP_E_EXCEPTION;
break;
reactos/dll/win32/activeds # Synced to WineStaging-3.3
reactos/dll/win32/actxprxy # Synced to WineStaging-3.3
reactos/dll/win32/advpack # Synced to WineStaging-3.17
-reactos/dll/win32/atl # Synced to WineStaging-3.3
+reactos/dll/win32/atl # Synced to WineStaging-3.17
reactos/dll/win32/atl80 # Synced to WineStaging-3.3
reactos/dll/win32/atl100 # Synced to WineStaging-3.3
reactos/dll/win32/avifil32 # Synced to WineStaging-3.9