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
a0954a19
Commit
a0954a19
authored
Jun 24, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Implement get_VolumeName().
parent
6a2e1b3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
filesystem.c
dlls/scrrun/filesystem.c
+13
-2
filesystem.c
dlls/scrrun/tests/filesystem.c
+9
-0
No files found.
dlls/scrrun/filesystem.c
View file @
a0954a19
...
...
@@ -957,8 +957,19 @@ static HRESULT WINAPI drive_get_TotalSize(IDrive *iface, VARIANT *v)
static
HRESULT
WINAPI
drive_get_VolumeName
(
IDrive
*
iface
,
BSTR
*
name
)
{
struct
drive
*
This
=
impl_from_IDrive
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
name
);
return
E_NOTIMPL
;
WCHAR
nameW
[
MAX_PATH
+
1
];
BOOL
ret
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
name
);
if
(
!
name
)
return
E_POINTER
;
*
name
=
NULL
;
ret
=
GetVolumeInformationW
(
This
->
root
,
nameW
,
sizeof
(
nameW
)
/
sizeof
(
WCHAR
),
NULL
,
NULL
,
NULL
,
NULL
,
0
);
if
(
ret
)
*
name
=
SysAllocString
(
nameW
);
return
ret
?
S_OK
:
E_FAIL
;
}
static
HRESULT
WINAPI
drive_put_VolumeName
(
IDrive
*
iface
,
BSTR
name
)
...
...
dlls/scrrun/tests/filesystem.c
View file @
a0954a19
...
...
@@ -1830,6 +1830,15 @@ static void test_SerialNumber(void)
ok
(
name
!=
NULL
,
"got %p
\n
"
,
name
);
SysFreeString
(
name
);
hr
=
IDrive_get_VolumeName
(
drive
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
name
=
NULL
;
hr
=
IDrive_get_VolumeName
(
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