commit | 0af222ceb4337c73efbc63535311ff9f592ee586 | [log] [tgz] |
---|---|---|
author | Andreas Mohr <a.mohr@mailto.de> | Fri Sep 22 20:58:23 2000 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Fri Sep 22 20:58:23 2000 +0000 |
tree | 5a48b6fb79b9a3afc65e033a20fb1dfea4bdcd6e | |
parent | ab965d9541c222e194cb1096e55f629b26142cc2 [diff] |
Added SetLastError() in GetEnvironmentVariableA.
diff --git a/memory/environ.c b/memory/environ.c index 2b91ac5..7353b95 100644 --- a/memory/environ.c +++ b/memory/environ.c
@@ -242,7 +242,9 @@ else if (value) strcpy( value, p ); } LeaveCriticalSection( ¤t_envdb.section ); - return ret; /* FIXME: SetLastError */ + if (!ret) + SetLastError( ERROR_ENVVAR_NOT_FOUND ); + return ret; }