msvcp60: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
966b3b20de
commit
30905781aa
|
@ -2906,10 +2906,10 @@ FILE* __cdecl _Fiopen_wchar(const wchar_t *name, int mode, int prot)
|
|||
|
||||
TRACE("(%s %d %d)\n", debugstr_w(name), mode, prot);
|
||||
|
||||
for(mode_idx=0; mode_idx<sizeof(str_mode)/sizeof(str_mode[0]); mode_idx++)
|
||||
for(mode_idx=0; mode_idx<ARRAY_SIZE(str_mode); mode_idx++)
|
||||
if(str_mode[mode_idx].mode == real_mode)
|
||||
break;
|
||||
if(mode_idx == sizeof(str_mode)/sizeof(str_mode[0]))
|
||||
if(mode_idx == ARRAY_SIZE(str_mode))
|
||||
return NULL;
|
||||
|
||||
if((mode & OPENMODE__Nocreate) && !(f = _wfopen(name, rW)))
|
||||
|
|
Loading…
Reference in New Issue