mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:55:50 +00:00
msvcrt: Use 'else if' in _wgetcwd.
Fixes a scan-build warning.
This commit is contained in:
parent
78ef7c3461
commit
76acd5916f
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue