Sweden-Number/dlls/advapi32
Vladimir Panteleev 7ad5e1bc8a kernelbase: Preserve last error when GetEnvironmentVariableA succeeds.
Avoid clobbering last error with NO_ERROR when GetEnvironmentVariableA
succeeds, matching the behavior of GetEnvironmentVariableW and
Windows.

Instead of naively saving and restoring the last error, call
RtlQueryEnvironmentVariable_U directly to avoid unnecessarily setting
it in the first place.

Signed-off-by: Vladimir Panteleev <git@vladimir.panteleev.md>
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-15 14:08:51 +02:00
..
tests kernelbase: Preserve last error when GetEnvironmentVariableA succeeds. 2020-05-15 14:08:51 +02:00
Makefile.in advapi32: Move service functions into sechost. 2020-04-29 10:25:08 +02:00
advapi.c advapi32: Set last error directly in GetUserName. 2020-05-15 14:08:51 +02:00
advapi32.spec advapi32: Move string SID/SD conversion functions to sechost. 2020-05-02 13:54:41 +02:00
advapi32_misc.h advapi32: Replace SERV_dup() with strdupAW(). 2020-04-28 11:21:40 +02:00
cred.c
crypt.c advapi32: Fix 3 comments about pdwReserved and dwFlags. 2020-03-18 19:37:21 +01:00
crypt.h advapi32: Use standard refcount in CRYPTPROV. 2020-03-17 16:00:07 +01:00
crypt_arc4.c
crypt_des.c
crypt_lmhash.c
eventlog.c advapi32: Replace SERV_dup() with strdupAW(). 2020-04-28 11:21:40 +02:00
lsa.c advapi32: Return the string SID if LookupAccountSid() fails. 2020-02-02 18:48:23 +01:00
registry.c advapi32: Move registry functions to kernelbase. 2019-06-25 13:22:17 +02:00
security.c advapi32: Move string SID/SD conversion functions to sechost. 2020-05-02 13:54:41 +02:00
service.c advapi32: Move service functions into sechost. 2020-04-29 10:25:08 +02:00
version.rc
wmi.c