Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a7fa496b
Commit
a7fa496b
authored
Aug 11, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Sep 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.applicationmodel/tests: Add IStorageItem::get_Path() tests.
parent
8d3ef2bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
Makefile.in
dlls/windows.applicationmodel/tests/Makefile.in
+1
-1
application.c
dlls/windows.applicationmodel/tests/application.c
+17
-1
No files found.
dlls/windows.applicationmodel/tests/Makefile.in
View file @
a7fa496b
TESTDLL
=
windows.applicationmodel.dll
IMPORTS
=
combase advapi32
IMPORTS
=
combase advapi32
kernelbase
application_EXTRADLLFLAGS
=
-mconsole
...
...
dlls/windows.applicationmodel/tests/application.c
View file @
a7fa496b
...
...
@@ -28,6 +28,7 @@
#include "winbase.h"
#include "initguid.h"
#include "winstring.h"
#include "pathcch.h"
#include "roapi.h"
...
...
@@ -61,9 +62,11 @@ static void test_PackageStatics(void)
IStorageFolder
*
storage_folder
;
IActivationFactory
*
factory
;
IStorageItem
*
storage_item
;
WCHAR
buffer
[
MAX_PATH
];
HSTRING
str
,
wine_str
;
IPackage
*
package
;
HSTRING
str
;
HRESULT
hr
;
INT32
res
;
LONG
ref
;
hr
=
WindowsCreateString
(
package_statics_name
,
wcslen
(
package_statics_name
),
&
str
);
...
...
@@ -107,6 +110,19 @@ static void test_PackageStatics(void)
hr
=
IStorageFolder_QueryInterface
(
storage_folder
,
&
IID_IStorageItem
,
(
void
**
)
&
storage_item
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
IStorageItem_get_Path
(
storage_item
,
&
str
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
GetModuleFileNameW
(
NULL
,
buffer
,
MAX_PATH
);
hr
=
PathCchRemoveFileSpec
(
buffer
,
ARRAY_SIZE
(
buffer
)
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
WindowsCreateString
(
buffer
,
wcslen
(
buffer
),
&
wine_str
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
WindowsCompareStringOrdinal
(
str
,
wine_str
,
&
res
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
!
res
,
"got string %s.
\n
"
,
debugstr_hstring
(
str
)
);
WindowsDeleteString
(
str
);
WindowsDeleteString
(
wine_str
);
ref
=
IStorageItem_Release
(
storage_item
);
ok
(
ref
==
1
,
"got ref %ld.
\n
"
,
ref
);
ref
=
IStorageFolder_Release
(
storage_folder
);
...
...
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