Commit 76acd591 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

msvcrt: Use 'else if' in _wgetcwd.

Fixes a scan-build warning.
parent 78ef7c34
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment