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
0ff2c06c
Commit
0ff2c06c
authored
Oct 12, 2008
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed RegEnumKey(Ex)W buffer sizes.
parent
7cfaf4ac
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
dmoreg.c
dlls/msdmo/dmoreg.c
+2
-2
classes.c
dlls/shell32/classes.c
+1
-1
shlexec.c
dlls/shell32/shlexec.c
+1
-1
mci.c
dlls/winmm/mci.c
+1
-1
aspi.c
dlls/wnaspi32/aspi.c
+3
-3
No files found.
dlls/msdmo/dmoreg.c
View file @
0ff2c06c
...
...
@@ -737,7 +737,7 @@ HRESULT read_types(HKEY root, LPCWSTR key, ULONG *supplied, ULONG requested, DMO
while
(
rc
==
ERROR_SUCCESS
)
{
len
=
MAX_PATH
*
sizeof
(
WCHAR
)
;
len
=
MAX_PATH
;
rc
=
RegEnumKeyExW
(
hkey
,
index
,
szNextKey
,
&
len
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
rc
==
ERROR_SUCCESS
)
{
...
...
@@ -749,7 +749,7 @@ HRESULT read_types(HKEY root, LPCWSTR key, ULONG *supplied, ULONG requested, DMO
RegOpenKeyExW
(
hkey
,
szNextKey
,
0
,
KEY_READ
,
&
subk
);
while
(
rcs
==
ERROR_SUCCESS
)
{
len
=
MAX_PATH
*
sizeof
(
WCHAR
)
;
len
=
MAX_PATH
;
rcs
=
RegEnumKeyExW
(
subk
,
sub_index
,
szSubKey
,
&
len
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
rcs
==
ERROR_SUCCESS
)
{
...
...
dlls/shell32/classes.c
View file @
0ff2c06c
...
...
@@ -187,7 +187,7 @@ BOOL HCR_GetExecuteCommandW( HKEY hkeyClass, LPCWSTR szClass, LPCWSTR szVerb, LP
return
FALSE
;
ret
=
FALSE
;
if
(
HCR_GetDefaultVerbW
(
hkeyClass
,
szVerb
,
sTempVerb
,
sizeof
(
sTempVerb
)))
if
(
HCR_GetDefaultVerbW
(
hkeyClass
,
szVerb
,
sTempVerb
,
sizeof
(
sTempVerb
)
/
sizeof
(
sTempVerb
[
0
])
))
{
WCHAR
sTemp
[
MAX_PATH
];
lstrcpyW
(
sTemp
,
swShell
);
...
...
dlls/shell32/shlexec.c
View file @
0ff2c06c
...
...
@@ -472,7 +472,7 @@ static UINT SHELL_FindExecutableByOperation(LPCWSTR lpOperation, LPWSTR key, LPW
if
(
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
filetype
,
0
,
0x02000000
,
&
hkeyClass
))
return
SE_ERR_NOASSOC
;
if
(
!
HCR_GetDefaultVerbW
(
hkeyClass
,
lpOperation
,
verb
,
sizeof
(
verb
)))
if
(
!
HCR_GetDefaultVerbW
(
hkeyClass
,
lpOperation
,
verb
,
sizeof
(
verb
)
/
sizeof
(
verb
[
0
])
))
return
SE_ERR_NOASSOC
;
RegCloseKey
(
hkeyClass
);
...
...
dlls/winmm/mci.c
View file @
0ff2c06c
...
...
@@ -1899,7 +1899,7 @@ static DWORD MCI_SysInfo(UINT uDevID, DWORD dwFlags, LPMCI_SYSINFO_PARMSW lpParm
if
(
RegQueryInfoKeyW
(
hKey
,
0
,
0
,
0
,
&
cnt
,
0
,
0
,
0
,
0
,
0
,
0
,
0
)
==
ERROR_SUCCESS
&&
lpParms
->
dwNumber
<=
cnt
)
{
DWORD
bufLen
=
sizeof
(
buf
);
DWORD
bufLen
=
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]
);
if
(
RegEnumKeyExW
(
hKey
,
lpParms
->
dwNumber
-
1
,
buf
,
&
bufLen
,
0
,
0
,
0
,
0
)
==
ERROR_SUCCESS
)
s
=
buf
;
...
...
dlls/wnaspi32/aspi.c
View file @
0ff2c06c
...
...
@@ -128,7 +128,7 @@ int ASPI_GetNumControllers(void)
ERR
(
"Could not open HKLM
\\
%s
\n
"
,
debugstr_w
(
wDevicemapScsi
));
return
0
;
}
while
(
RegEnumKeyW
(
hkeyScsi
,
i
++
,
wPortName
,
sizeof
(
wPortName
))
==
ERROR_SUCCESS
)
while
(
RegEnumKeyW
(
hkeyScsi
,
i
++
,
wPortName
,
sizeof
(
wPortName
)
/
sizeof
(
wPortName
[
0
])
)
==
ERROR_SUCCESS
)
{
if
(
RegOpenKeyExW
(
hkeyScsi
,
wPortName
,
0
,
KEY_QUERY_VALUE
,
&
hkeyPort
)
==
ERROR_SUCCESS
)
{
...
...
@@ -190,7 +190,7 @@ DWORD ASPI_GetHCforController( int controller )
ERR
(
"Could not open HKLM
\\
%s
\n
"
,
debugstr_w
(
wDevicemapScsi
));
return
0xFFFFFFFF
;
}
while
(
RegEnumKeyW
(
hkeyScsi
,
i
++
,
wPortName
,
sizeof
(
wPortName
))
==
ERROR_SUCCESS
)
while
(
RegEnumKeyW
(
hkeyScsi
,
i
++
,
wPortName
,
sizeof
(
wPortName
)
/
sizeof
(
wPortName
[
0
])
)
==
ERROR_SUCCESS
)
{
if
(
RegOpenKeyExW
(
hkeyScsi
,
wPortName
,
0
,
KEY_QUERY_VALUE
|
KEY_ENUMERATE_SUB_KEYS
,
&
hkeyPort
)
==
ERROR_SUCCESS
)
...
...
@@ -213,7 +213,7 @@ DWORD ASPI_GetHCforController( int controller )
return
0xFFFFFFFF
;
}
if
(
RegEnumKeyW
(
hkeyPort
,
-
num_ha
,
wBusName
,
sizeof
(
wBusName
))
!=
ERROR_SUCCESS
)
if
(
RegEnumKeyW
(
hkeyPort
,
-
num_ha
,
wBusName
,
sizeof
(
wBusName
)
/
sizeof
(
wBusName
[
0
])
)
!=
ERROR_SUCCESS
)
{
ERR
(
"Failed to enumerate keys
\n
"
);
RegCloseKey
(
hkeyPort
);
...
...
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