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
98535806
Commit
98535806
authored
Nov 21, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr.sys: Avoid hardcoding array lengths.
parent
ebf4ae03
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
device.c
dlls/mountmgr.sys/device.c
+2
-2
No files found.
dlls/mountmgr.sys/device.c
View file @
98535806
...
...
@@ -773,7 +773,7 @@ found:
if
(
!
RegCreateKeyW
(
HKEY_LOCAL_MACHINE
,
drives_keyW
,
&
hkey
))
{
const
WCHAR
*
type_name
=
drive_types
[
type
];
WCHAR
name
[
3
]
=
{
'a'
,
':'
,
0
};
WCHAR
name
[]
=
{
'a'
,
':'
,
0
};
name
[
0
]
+=
drive
->
drive
;
if
(
!
type_name
[
0
]
&&
type
==
DEVICE_HARDDISK
)
type_name
=
drive_types
[
DEVICE_FLOPPY
];
...
...
@@ -826,7 +826,7 @@ NTSTATUS remove_dos_device( int letter, const char *udi )
/* clear the registry key too */
if
(
!
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
drives_keyW
,
&
hkey
))
{
WCHAR
name
[
3
]
=
{
'a'
,
':'
,
0
};
WCHAR
name
[]
=
{
'a'
,
':'
,
0
};
name
[
0
]
+=
drive
->
drive
;
RegDeleteValueW
(
hkey
,
name
);
RegCloseKey
(
hkey
);
...
...
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