From: Shaun Ren <sren(a)codeweavers.com> So that the tests can be run on versions of Windows older than Vista. --- dlls/sapi/tests/Makefile.in | 2 +- dlls/sapi/tests/token.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/sapi/tests/Makefile.in b/dlls/sapi/tests/Makefile.in index ea14710194f..da25e2d74c6 100644 --- a/dlls/sapi/tests/Makefile.in +++ b/dlls/sapi/tests/Makefile.in @@ -1,5 +1,5 @@ TESTDLL = sapi.dll -IMPORTS = ole32 user32 advapi32 winmm +IMPORTS = ole32 user32 advapi32 shlwapi winmm C_SRCS = \ automation.c \ diff --git a/dlls/sapi/tests/token.c b/dlls/sapi/tests/token.c index 8befd98c2a5..ce369729d6c 100644 --- a/dlls/sapi/tests/token.c +++ b/dlls/sapi/tests/token.c @@ -23,6 +23,7 @@ #include "initguid.h" #include "sapiddk.h" #include "sperror.h" +#include "shlwapi.h" #include "wine/test.h" @@ -788,7 +789,7 @@ static void test_object_token(void) START_TEST(token) { CoInitialize( NULL ); - RegDeleteTreeA( HKEY_CURRENT_USER, "Software\\Winetest\\sapi" ); + SHDeleteKeyA( HKEY_CURRENT_USER, "Software\\Winetest\\sapi" ); test_data_key(); setup_test_voice_tokens(); test_token_category(); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/3336