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 advapi32: Introduce ARRAY_SIZE macro. 2018-03-20 11:37:00 +01:00
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 advapi32: Constify some variables. 2009-03-27 11:23:10 +01:00
crypt_des.c advapi32: Remove unused function. 2009-01-02 11:51:35 +01:00
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 advapi32: Add stubs for some advapi32 wmi functions. 2016-07-04 11:00:30 +09:00