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
0194896a
Commit
0194896a
authored
Feb 28, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
556ba38d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
filesystem.c
dlls/scrrun/filesystem.c
+2
-2
No files found.
dlls/scrrun/filesystem.c
View file @
0194896a
...
...
@@ -1001,7 +1001,7 @@ static HRESULT WINAPI drive_get_VolumeName(IDrive *iface, BSTR *name)
return
E_POINTER
;
*
name
=
NULL
;
ret
=
GetVolumeInformationW
(
This
->
root
,
nameW
,
sizeof
(
nameW
)
/
sizeof
(
WCHAR
),
NULL
,
NULL
,
NULL
,
NULL
,
0
);
ret
=
GetVolumeInformationW
(
This
->
root
,
nameW
,
ARRAY_SIZE
(
nameW
),
NULL
,
NULL
,
NULL
,
NULL
,
0
);
if
(
ret
)
*
name
=
SysAllocString
(
nameW
);
return
ret
?
S_OK
:
E_FAIL
;
...
...
@@ -1026,7 +1026,7 @@ static HRESULT WINAPI drive_get_FileSystem(IDrive *iface, BSTR *fs)
return
E_POINTER
;
*
fs
=
NULL
;
ret
=
GetVolumeInformationW
(
This
->
root
,
NULL
,
0
,
NULL
,
NULL
,
NULL
,
nameW
,
sizeof
(
nameW
)
/
sizeof
(
WCHAR
));
ret
=
GetVolumeInformationW
(
This
->
root
,
NULL
,
0
,
NULL
,
NULL
,
NULL
,
nameW
,
ARRAY_SIZE
(
nameW
));
if
(
ret
)
*
fs
=
SysAllocString
(
nameW
);
return
ret
?
S_OK
:
E_FAIL
;
...
...
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