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
574350d8
Commit
574350d8
authored
Mar 13, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Implement Path() property for IFile.
parent
7e480d3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
filesystem.c
dlls/scrrun/filesystem.c
+12
-3
filesystem.c
dlls/scrrun/tests/filesystem.c
+9
-1
No files found.
dlls/scrrun/filesystem.c
View file @
574350d8
...
...
@@ -2546,11 +2546,20 @@ static HRESULT WINAPI file_Invoke(IFile *iface, DISPID dispIdMember, REFIID riid
return
hr
;
}
static
HRESULT
WINAPI
file_get_Path
(
IFile
*
iface
,
BSTR
*
p
bstrP
ath
)
static
HRESULT
WINAPI
file_get_Path
(
IFile
*
iface
,
BSTR
*
path
)
{
struct
file
*
This
=
impl_from_IFile
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pbstrPath
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
path
);
if
(
!
path
)
return
E_POINTER
;
*
path
=
SysAllocString
(
This
->
path
);
if
(
!*
path
)
return
E_OUTOFMEMORY
;
return
S_OK
;
}
static
HRESULT
WINAPI
file_get_Name
(
IFile
*
iface
,
BSTR
*
name
)
...
...
dlls/scrrun/tests/filesystem.c
View file @
574350d8
...
...
@@ -538,7 +538,7 @@ static void test_GetAbsolutePathName(void)
static
void
test_GetFile
(
void
)
{
static
const
WCHAR
slW
[]
=
{
'\\'
,
0
};
BSTR
path
;
BSTR
path
,
str
;
WCHAR
pathW
[
MAX_PATH
];
FileAttribute
fa
;
VARIANT
size
;
...
...
@@ -572,6 +572,14 @@ static void test_GetFile(void)
hr
=
IFileSystem3_GetFile
(
fs3
,
path
,
&
file
);
ok
(
hr
==
S_OK
,
"GetFile returned %x, expected S_OK
\n
"
,
hr
);
hr
=
IFile_get_Path
(
file
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IFile_get_Path
(
file
,
&
str
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
pathW
),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
hr
=
IFile_get_Attributes
(
file
,
&
fa
);
gfa
=
GetFileAttributesW
(
pathW
)
&
(
FILE_ATTRIBUTE_READONLY
|
FILE_ATTRIBUTE_HIDDEN
|
FILE_ATTRIBUTE_SYSTEM
|
FILE_ATTRIBUTE_DIRECTORY
|
FILE_ATTRIBUTE_ARCHIVE
|
...
...
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