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
8f63a714
Commit
8f63a714
authored
Dec 13, 2003
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try not to display uninitialized data in traces (found by Valgrind).
parent
a25b352f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
registry.c
dlls/advapi32/registry.c
+2
-1
resource.c
dlls/ntdll/resource.c
+4
-2
No files found.
dlls/advapi32/registry.c
View file @
8f63a714
...
@@ -1013,7 +1013,8 @@ DWORD WINAPI RegQueryValueExW( HKEY hkey, LPCWSTR name, LPDWORD reserved, LPDWOR
...
@@ -1013,7 +1013,8 @@ DWORD WINAPI RegQueryValueExW( HKEY hkey, LPCWSTR name, LPDWORD reserved, LPDWOR
static
const
int
info_size
=
offsetof
(
KEY_VALUE_PARTIAL_INFORMATION
,
Data
);
static
const
int
info_size
=
offsetof
(
KEY_VALUE_PARTIAL_INFORMATION
,
Data
);
TRACE
(
"(%p,%s,%p,%p,%p,%p=%ld)
\n
"
,
TRACE
(
"(%p,%s,%p,%p,%p,%p=%ld)
\n
"
,
hkey
,
debugstr_w
(
name
),
reserved
,
type
,
data
,
count
,
count
?
*
count
:
0
);
hkey
,
debugstr_w
(
name
),
reserved
,
type
,
data
,
count
,
(
count
&&
data
)
?
*
count
:
0
);
if
((
data
&&
!
count
)
||
reserved
)
return
ERROR_INVALID_PARAMETER
;
if
((
data
&&
!
count
)
||
reserved
)
return
ERROR_INVALID_PARAMETER
;
if
(
!
(
hkey
=
get_special_root_hkey
(
hkey
)))
return
ERROR_INVALID_HANDLE
;
if
(
!
(
hkey
=
get_special_root_hkey
(
hkey
)))
return
ERROR_INVALID_HANDLE
;
...
...
dlls/ntdll/resource.c
View file @
8f63a714
...
@@ -275,7 +275,8 @@ NTSTATUS WINAPI LdrFindResourceDirectory_U( HMODULE hmod, const LDR_RESOURCE_INF
...
@@ -275,7 +275,8 @@ NTSTATUS WINAPI LdrFindResourceDirectory_U( HMODULE hmod, const LDR_RESOURCE_INF
if
(
info
)
TRACE
(
"module %p type %s name %s lang %04lx level %ld
\n
"
,
if
(
info
)
TRACE
(
"module %p type %s name %s lang %04lx level %ld
\n
"
,
hmod
,
debugstr_w
((
LPCWSTR
)
info
->
Type
),
hmod
,
debugstr_w
((
LPCWSTR
)
info
->
Type
),
debugstr_w
((
LPCWSTR
)
info
->
Name
),
info
->
Language
,
level
);
level
>
1
?
debugstr_w
((
LPCWSTR
)
info
->
Name
)
:
""
,
level
>
2
?
info
->
Language
:
0
,
level
);
__TRY
__TRY
{
{
...
@@ -302,7 +303,8 @@ NTSTATUS WINAPI LdrFindResource_U( HMODULE hmod, const LDR_RESOURCE_INFO *info,
...
@@ -302,7 +303,8 @@ NTSTATUS WINAPI LdrFindResource_U( HMODULE hmod, const LDR_RESOURCE_INFO *info,
if
(
info
)
TRACE
(
"module %p type %s name %s lang %04lx level %ld
\n
"
,
if
(
info
)
TRACE
(
"module %p type %s name %s lang %04lx level %ld
\n
"
,
hmod
,
debugstr_w
((
LPCWSTR
)
info
->
Type
),
hmod
,
debugstr_w
((
LPCWSTR
)
info
->
Type
),
debugstr_w
((
LPCWSTR
)
info
->
Name
),
info
->
Language
,
level
);
level
>
1
?
debugstr_w
((
LPCWSTR
)
info
->
Name
)
:
""
,
level
>
2
?
info
->
Language
:
0
,
level
);
__TRY
__TRY
{
{
...
...
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