---
 mingw-w64-crt/stdio/mingw_wvfscanf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-crt/stdio/mingw_wvfscanf.c 
b/mingw-w64-crt/stdio/mingw_wvfscanf.c
index 3924b54..41bdc68 100644
--- a/mingw-w64-crt/stdio/mingw_wvfscanf.c
+++ b/mingw-w64-crt/stdio/mingw_wvfscanf.c
@@ -237,7 +237,7 @@ release_ptrs (struct gcollect **pt, wchar_t **wbuf)
 static int
 cleanup_return (int rval, struct gcollect **pfree, char **strp, wchar_t **wbuf)
 {
-  if (rval == EOF)
+  if (rval == WEOF)
       release_ptrs (pfree, wbuf);
   else
     {
@@ -1326,7 +1326,7 @@ __mingw_swformat (_IFP *s, const wchar_t *format, va_list 
argp)
                    return cleanup_return (rval, &gcollect, pstr, &wbuf);
                  str_sz = 100;
                  if ((str = *pstr = (char *) malloc (100)) == NULL)
-                   return cleanup_return (((flags & USE_POSIX_ALLOC) != 0 ? 
EOF : rval), &gcollect, pstr, &wbuf);
+                   return cleanup_return (((flags & USE_POSIX_ALLOC) != 0 ? 
WEOF : rval), &gcollect, pstr, &wbuf);
                  gcollect = resize_gcollect (gcollect);
                  gcollect->ptrs[gcollect->count++] = pstr;
                }
-- 
2.7.0


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to