Alexandre Julliard : msvcp90: Remove parameter checks from functions that are only used for old msvcp versions.

Alexandre Julliard julliard at winehq.org
Mon Jan 13 12:46:32 CST 2014


Module: wine
Branch: master
Commit: 4d7255d2df5a9262970e532c3e078ea7cd75631a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4d7255d2df5a9262970e532c3e078ea7cd75631a

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan 13 11:50:36 2014 +0100

msvcp90: Remove parameter checks from functions that are only used for old msvcp versions.

---

 dlls/msvcp90/locale.c |   12 ------------
 1 file changed, 12 deletions(-)

diff --git a/dlls/msvcp90/locale.c b/dlls/msvcp90/locale.c
index 45380d2..f428396 100644
--- a/dlls/msvcp90/locale.c
+++ b/dlls/msvcp90/locale.c
@@ -9713,12 +9713,6 @@ size_t __cdecl mbsrtowcs(wchar_t *dst, const char **pstr, size_t n, mbstate_t *s
     wchar_t wc;
     const char *src;
 
-    if (!pstr)
-    {
-        *_errno() = EINVAL;
-        _invalid_parameter( NULL, NULL, NULL, 0, 0 );
-        return -1;
-    }
     src = *pstr;
     if (!state) state = &local_state;
 
@@ -9757,12 +9751,6 @@ size_t __cdecl wcsrtombs(char *dst, const wchar_t **pstr, size_t n, mbstate_t *s
     char buffer[MB_LEN_MAX];
     size_t ret = 0;
 
-    if (!pstr)
-    {
-        *_errno() = EINVAL;
-        _invalid_parameter( NULL, NULL, NULL, 0, 0 );
-        return -1;
-    }
     src = *pstr;
 
     while (!dst || n > ret)




More information about the wine-cvs mailing list