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
eebf9c6b
Commit
eebf9c6b
authored
Mar 12, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Implement Path() property for Folder.
parent
31faed57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
filesystem.c
dlls/scrrun/filesystem.c
+8
-2
filesystem.c
dlls/scrrun/tests/filesystem.c
+9
-1
No files found.
dlls/scrrun/filesystem.c
View file @
eebf9c6b
...
...
@@ -1826,8 +1826,14 @@ static HRESULT WINAPI folder_Invoke(IFolder *iface, DISPID dispIdMember,
static
HRESULT
WINAPI
folder_get_Path
(
IFolder
*
iface
,
BSTR
*
path
)
{
struct
folder
*
This
=
impl_from_IFolder
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
path
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
path
);
if
(
!
path
)
return
E_POINTER
;
*
path
=
SysAllocString
(
This
->
path
);
return
*
path
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
folder_get_Name
(
IFolder
*
iface
,
BSTR
*
name
)
...
...
dlls/scrrun/tests/filesystem.c
View file @
eebf9c6b
...
...
@@ -795,7 +795,7 @@ static void test_GetFolder(void)
/* Please keep the tests for IFolderCollection and IFileCollection in sync */
static
void
test_FolderCollection
(
void
)
{
static
const
WCHAR
fooW
[]
=
{
'
\\'
,
'
f'
,
'o'
,
'o'
,
0
};
static
const
WCHAR
fooW
[]
=
{
'f'
,
'o'
,
'o'
,
0
};
static
const
WCHAR
aW
[]
=
{
'\\'
,
'a'
,
0
};
static
const
WCHAR
bW
[]
=
{
'\\'
,
'b'
,
0
};
static
const
WCHAR
cW
[]
=
{
'\\'
,
'c'
,
0
};
...
...
@@ -824,6 +824,14 @@ static void test_FolderCollection(void)
hr
=
IFolder_get_SubFolders
(
folder
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IFolder_get_Path
(
folder
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IFolder_get_Path
(
folder
,
&
str
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
buffW
,
str
),
"got %s, expected %s
\n
"
,
wine_dbgstr_w
(
str
),
wine_dbgstr_w
(
buffW
));
SysFreeString
(
str
);
lstrcpyW
(
pathW
,
buffW
);
lstrcatW
(
pathW
,
aW
);
CreateDirectoryW
(
pathW
,
NULL
);
...
...
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