Added SetLastError() in GetEnvironmentVariableA.
This commit is contained in:
parent
ab965d9541
commit
0af222ceb4
|
@ -242,7 +242,9 @@ DWORD WINAPI GetEnvironmentVariableA( LPCSTR name, LPSTR value, DWORD size )
|
||||||
else if (value) strcpy( value, p );
|
else if (value) strcpy( value, p );
|
||||||
}
|
}
|
||||||
LeaveCriticalSection( ¤t_envdb.section );
|
LeaveCriticalSection( ¤t_envdb.section );
|
||||||
return ret; /* FIXME: SetLastError */
|
if (!ret)
|
||||||
|
SetLastError( ERROR_ENVVAR_NOT_FOUND );
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue