Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
94e3e2d1
Commit
94e3e2d1
authored
Sep 28, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Sep 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.applicationmodel/tests: Use PathRemoveFileSpecW() instead of PathCchRemoveFileSpec().
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55652
parent
bb8cc288
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Makefile.in
dlls/windows.applicationmodel/tests/Makefile.in
+1
-1
application.c
dlls/windows.applicationmodel/tests/application.c
+2
-3
No files found.
dlls/windows.applicationmodel/tests/Makefile.in
View file @
94e3e2d1
TESTDLL
=
windows.applicationmodel.dll
IMPORTS
=
combase advapi32
kernelbase
IMPORTS
=
combase advapi32
shlwapi
application_EXTRADLLFLAGS
=
-mconsole
...
...
dlls/windows.applicationmodel/tests/application.c
View file @
94e3e2d1
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment