Commit 94e3e2d1 authored by Mohamad Al-Jaf's avatar Mohamad Al-Jaf Committed by Alexandre Julliard

windows.applicationmodel/tests: Use PathRemoveFileSpecW() instead of PathCchRemoveFileSpec().

parent bb8cc288
TESTDLL = windows.applicationmodel.dll
IMPORTS = combase advapi32 kernelbase
IMPORTS = combase advapi32 shlwapi
application_EXTRADLLFLAGS = -mconsole
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment