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
a971f548
Commit
a971f548
authored
Nov 20, 2003
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use the data returned by RegQueryValueExW if it fails (found by
Valgrind). A spelling fix.
parent
d1b344b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
reg.c
dlls/shlwapi/reg.c
+3
-1
No files found.
dlls/shlwapi/reg.c
View file @
a971f548
...
@@ -1240,6 +1240,8 @@ DWORD WINAPI SHQueryValueExW(HKEY hKey, LPCWSTR lpszValue,
...
@@ -1240,6 +1240,8 @@ DWORD WINAPI SHQueryValueExW(HKEY hKey, LPCWSTR lpszValue,
if
(
pcbData
)
dwUnExpDataLen
=
*
pcbData
;
if
(
pcbData
)
dwUnExpDataLen
=
*
pcbData
;
dwRet
=
RegQueryValueExW
(
hKey
,
lpszValue
,
lpReserved
,
&
dwType
,
pvData
,
&
dwUnExpDataLen
);
dwRet
=
RegQueryValueExW
(
hKey
,
lpszValue
,
lpReserved
,
&
dwType
,
pvData
,
&
dwUnExpDataLen
);
if
(
dwRet
!=
ERROR_SUCCESS
&&
dwRet
!=
ERROR_MORE_DATA
)
return
dwRet
;
if
(
pcbData
&&
(
dwType
==
REG_EXPAND_SZ
))
if
(
pcbData
&&
(
dwType
==
REG_EXPAND_SZ
))
{
{
...
@@ -1248,7 +1250,7 @@ DWORD WINAPI SHQueryValueExW(HKEY hKey, LPCWSTR lpszValue,
...
@@ -1248,7 +1250,7 @@ DWORD WINAPI SHQueryValueExW(HKEY hKey, LPCWSTR lpszValue,
/* Expand type REG_EXPAND_SZ into REG_SZ */
/* Expand type REG_EXPAND_SZ into REG_SZ */
LPWSTR
szData
;
LPWSTR
szData
;
/* If the caller didn't supply a buffer or the buffer is to small we have
/* If the caller didn't supply a buffer or the buffer is to
o
small we have
* to allocate our own
* to allocate our own
*/
*/
if
((
!
pvData
)
||
(
dwRet
==
ERROR_MORE_DATA
)
)
if
((
!
pvData
)
||
(
dwRet
==
ERROR_MORE_DATA
)
)
...
...
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