Commit 0af222ce authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Added SetLastError() in GetEnvironmentVariableA.

parent ab965d95
......@@ -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;
}
......
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