[PATCH 1/2] msvcp140: Remove a redundant check.
Stefan Dösinger
stefan at codeweavers.com
Sun Jul 9 15:14:36 CDT 2017
MultiByteToWideChar does the same check.
Signed-off-by: Stefan Dösinger <stefan at codeweavers.com>
---
dlls/msvcp90/locale.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/dlls/msvcp90/locale.c b/dlls/msvcp90/locale.c
index f7a9294c81..f80c9b63dc 100644
--- a/dlls/msvcp90/locale.c
+++ b/dlls/msvcp90/locale.c
@@ -11227,10 +11227,6 @@ size_t __cdecl wcsrtombs(char *dst, const wchar_t **pstr, size_t n, mbstate_t *s
int __cdecl _To_wide(const char *src, wchar_t *dst)
{
TRACE("(%s %p)\n", debugstr_a(src), dst);
-
- if (!src || !dst)
- return 0;
-
return MultiByteToWideChar(CP_ACP, 0, src, -1, dst, MAX_PATH);
}
--
2.13.0
More information about the wine-patches
mailing list