msvcp140: Remove a redundant check.
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com> Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
718f8265c0
commit
8cb8c14570
|
@ -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)
|
int __cdecl _To_wide(const char *src, wchar_t *dst)
|
||||||
{
|
{
|
||||||
TRACE("(%s %p)\n", debugstr_a(src), dst);
|
TRACE("(%s %p)\n", debugstr_a(src), dst);
|
||||||
|
|
||||||
if (!src || !dst)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
return MultiByteToWideChar(CP_ACP, 0, src, -1, dst, MAX_PATH);
|
return MultiByteToWideChar(CP_ACP, 0, src, -1, dst, MAX_PATH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue