Added SetLastError() in GetEnvironmentVariableA.

This commit is contained in:
Andreas Mohr 2000-09-22 20:58:23 +00:00 committed by Alexandre Julliard
parent ab965d9541
commit 0af222ceb4
1 changed files with 3 additions and 1 deletions

View File

@ -242,7 +242,9 @@ DWORD WINAPI GetEnvironmentVariableA( LPCSTR name, LPSTR value, DWORD size )
else if (value) strcpy( value, p );
}
LeaveCriticalSection( &current_envdb.section );
return ret; /* FIXME: SetLastError */
if (!ret)
SetLastError( ERROR_ENVVAR_NOT_FOUND );
return ret;
}