Module: wine
Branch: master
Commit: 94e3e2d115147b80bbe732fa6adf887c6b22644a
URL:
https://gitlab.winehq.org/wine/wine/-/commit/94e3e2d115147b80bbe732fa6adf88…
Author: Mohamad Al-Jaf <mohamadaljaf(a)gmail.com>
Date: Thu Sep 28 20:21:03 2023 -0400
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 );