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
d6f78e40
Commit
d6f78e40
authored
Dec 01, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Check wImageName for NULL (Coverity).
parent
28c6c44d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
module.c
dlls/dbghelp/module.c
+3
-1
No files found.
dlls/dbghelp/module.c
View file @
d6f78e40
...
@@ -534,6 +534,7 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
...
@@ -534,6 +534,7 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
if
(
Flags
&
SLMFLAG_VIRTUAL
)
if
(
Flags
&
SLMFLAG_VIRTUAL
)
{
{
if
(
!
wImageName
)
return
FALSE
;
module
=
module_new
(
pcs
,
wImageName
,
module_get_type_by_name
(
wImageName
),
module
=
module_new
(
pcs
,
wImageName
,
module_get_type_by_name
(
wImageName
),
TRUE
,
(
DWORD
)
BaseOfDll
,
SizeOfDll
,
0
,
0
);
TRUE
,
(
DWORD
)
BaseOfDll
,
SizeOfDll
,
0
,
0
);
if
(
!
module
)
return
FALSE
;
if
(
!
module
)
return
FALSE
;
...
@@ -594,7 +595,8 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
...
@@ -594,7 +595,8 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
*/
*/
if
(
wModuleName
)
if
(
wModuleName
)
module_set_module
(
module
,
wModuleName
);
module_set_module
(
module
,
wModuleName
);
lstrcpynW
(
module
->
module
.
ImageName
,
wImageName
,
if
(
wImageName
)
lstrcpynW
(
module
->
module
.
ImageName
,
wImageName
,
sizeof
(
module
->
module
.
ImageName
)
/
sizeof
(
WCHAR
));
sizeof
(
module
->
module
.
ImageName
)
/
sizeof
(
WCHAR
));
return
module
->
module
.
BaseOfImage
;
return
module
->
module
.
BaseOfImage
;
...
...
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