[PATCH] msvcp60: Use the ARRAY_SIZE() macro
Michael Stefaniuc
mstefani at winehq.org
Thu Aug 16 13:19:27 CDT 2018
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/msvcp60/ios.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcp60/ios.c b/dlls/msvcp60/ios.c
index 518c8dab35..079c4fa054 100644
--- a/dlls/msvcp60/ios.c
+++ b/dlls/msvcp60/ios.c
@@ -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)))
--
2.14.4
More information about the wine-devel
mailing list