msvcrt: Use 'else if' in _wgetcwd.

Fixes a scan-build warning.
This commit is contained in:
Alex Henrie 2023-06-05 23:16:20 -06:00 committed by Alexandre Julliard
parent 78ef7c3461
commit 76acd5916f

View file

@ -824,7 +824,7 @@ wchar_t* CDECL _wgetcwd(wchar_t * buf, int size)
if (size <= dir_len) size = dir_len + 1;
if (!(buf = malloc( size * sizeof(WCHAR) ))) return NULL;
}
if (dir_len >= size)
else if (dir_len >= size)
{
*_errno() = ERANGE;
return NULL; /* buf too small */