From 94e3e2d115147b80bbe732fa6adf887c6b22644a Mon Sep 17 00:00:00 2001 From: Mohamad Al-Jaf Date: Thu, 28 Sep 2023 20:21:03 -0400 Subject: [PATCH] windows.applicationmodel/tests: Use PathRemoveFileSpecW() instead of PathCchRemoveFileSpec(). Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55652 --- dlls/windows.applicationmodel/tests/Makefile.in | 2 +- dlls/windows.applicationmodel/tests/application.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dlls/windows.applicationmodel/tests/Makefile.in b/dlls/windows.applicationmodel/tests/Makefile.in index 9289fe0bc8c..3987f627736 100644 --- a/dlls/windows.applicationmodel/tests/Makefile.in +++ b/dlls/windows.applicationmodel/tests/Makefile.in @@ -1,5 +1,5 @@ TESTDLL = windows.applicationmodel.dll -IMPORTS = combase advapi32 kernelbase +IMPORTS = combase advapi32 shlwapi application_EXTRADLLFLAGS = -mconsole diff --git a/dlls/windows.applicationmodel/tests/application.c b/dlls/windows.applicationmodel/tests/application.c index 426d0d526a0..68abcc14450 100644 --- a/dlls/windows.applicationmodel/tests/application.c +++ b/dlls/windows.applicationmodel/tests/application.c @@ -28,7 +28,7 @@ #include "winbase.h" #include "initguid.h" #include "winstring.h" -#include "pathcch.h" +#include "shlwapi.h" #include "roapi.h" @@ -113,8 +113,7 @@ static void test_PackageStatics(void) hr = IStorageItem_get_Path( storage_item, &str ); ok( hr == S_OK, "got hr %#lx.\n", hr ); GetModuleFileNameW( NULL, buffer, MAX_PATH ); - hr = PathCchRemoveFileSpec( buffer, ARRAY_SIZE(buffer) ); - ok( hr == S_OK, "got hr %#lx.\n", hr ); + PathRemoveFileSpecW( buffer ); hr = WindowsCreateString( buffer, wcslen(buffer), &wine_str ); ok( hr == S_OK, "got hr %#lx.\n", hr ); hr = WindowsCompareStringOrdinal( str, wine_str, &res ); -- 2.11.4.GIT