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
6a2e1b3f
Commit
6a2e1b3f
authored
Jun 23, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Implement FileSystem property.
parent
5af5e401
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
filesystem.c
dlls/scrrun/filesystem.c
+13
-2
filesystem.c
dlls/scrrun/tests/filesystem.c
+10
-0
No files found.
dlls/scrrun/filesystem.c
View file @
6a2e1b3f
...
...
@@ -971,8 +971,19 @@ static HRESULT WINAPI drive_put_VolumeName(IDrive *iface, BSTR name)
static
HRESULT
WINAPI
drive_get_FileSystem
(
IDrive
*
iface
,
BSTR
*
fs
)
{
struct
drive
*
This
=
impl_from_IDrive
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
fs
);
return
E_NOTIMPL
;
WCHAR
nameW
[
MAX_PATH
+
1
];
BOOL
ret
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
fs
);
if
(
!
fs
)
return
E_POINTER
;
*
fs
=
NULL
;
ret
=
GetVolumeInformationW
(
This
->
root
,
NULL
,
0
,
NULL
,
NULL
,
NULL
,
nameW
,
sizeof
(
nameW
)
/
sizeof
(
WCHAR
));
if
(
ret
)
*
fs
=
SysAllocString
(
nameW
);
return
ret
?
S_OK
:
E_FAIL
;
}
static
HRESULT
WINAPI
drive_get_SerialNumber
(
IDrive
*
iface
,
LONG
*
serial
)
...
...
dlls/scrrun/tests/filesystem.c
View file @
6a2e1b3f
...
...
@@ -1798,6 +1798,7 @@ static void test_SerialNumber(void)
VARIANT
var
;
LONG
serial
;
HRESULT
hr
;
BSTR
name
;
hr
=
IFileSystem3_get_Drives
(
fs3
,
&
drives
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
...
...
@@ -1820,6 +1821,15 @@ static void test_SerialNumber(void)
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
serial
!=
0xdeadbeef
,
"got %x
\n
"
,
serial
);
hr
=
IDrive_get_FileSystem
(
drive
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
name
=
NULL
;
hr
=
IDrive_get_FileSystem
(
drive
,
&
name
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
name
!=
NULL
,
"got %p
\n
"
,
name
);
SysFreeString
(
name
);
IDrive_Release
(
drive
);
IEnumVARIANT_Release
(
iter
);
IDriveCollection_Release
(
drives
);
...
...
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