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
ed2bfd4a
Commit
ed2bfd4a
authored
Feb 23, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Sep 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.applicationmodel: Implement IStorageItem::get_Path().
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=52665
parent
a7fa496b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
Makefile.in
dlls/windows.applicationmodel/Makefile.in
+1
-1
package.c
dlls/windows.applicationmodel/package.c
+11
-2
application.c
dlls/windows.applicationmodel/tests/application.c
+4
-4
No files found.
dlls/windows.applicationmodel/Makefile.in
View file @
ed2bfd4a
MODULE
=
windows.applicationmodel.dll
IMPORTS
=
combase
IMPORTS
=
combase
kernelbase
C_SRCS
=
\
main.c
\
...
...
dlls/windows.applicationmodel/package.c
View file @
ed2bfd4a
...
...
@@ -20,6 +20,8 @@
#include "private.h"
#include "wine/debug.h"
#include "pathcch.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
model
);
struct
package_statics
...
...
@@ -320,8 +322,15 @@ static HRESULT WINAPI storage_item_get_Name( IStorageItem *iface, HSTRING *value
static
HRESULT
WINAPI
storage_item_get_Path
(
IStorageItem
*
iface
,
HSTRING
*
value
)
{
FIXME
(
"iface %p, value %p stub!
\n
"
,
iface
,
value
);
return
E_NOTIMPL
;
WCHAR
buffer
[
MAX_PATH
];
HRESULT
hr
;
TRACE
(
"iface %p, value %p
\n
"
,
iface
,
value
);
if
(
!
GetModuleFileNameW
(
NULL
,
buffer
,
MAX_PATH
))
return
HRESULT_FROM_WIN32
(
GetLastError
()
);
if
(
FAILED
(
hr
=
PathCchRemoveFileSpec
(
buffer
,
ARRAY_SIZE
(
buffer
)
)
))
return
hr
;
return
WindowsCreateString
(
buffer
,
wcslen
(
buffer
),
value
);
}
static
HRESULT
WINAPI
storage_item_get_Attributes
(
IStorageItem
*
iface
,
FileAttributes
*
value
)
...
...
dlls/windows.applicationmodel/tests/application.c
View file @
ed2bfd4a
...
...
@@ -111,15 +111,15 @@ static void test_PackageStatics(void)
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
);
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
);
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
)
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
!
res
,
"got string %s.
\n
"
,
debugstr_hstring
(
str
)
);
WindowsDeleteString
(
str
);
WindowsDeleteString
(
wine_str
);
...
...
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