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
4ff3d995
Commit
4ff3d995
authored
Oct 14, 2008
by
Kai Blin
Committed by
Alexandre Julliard
Oct 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Avoid possible NULL pointer dereference (Coverity).
parent
4dceb1f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
filedlg31.c
dlls/comdlg32/filedlg31.c
+4
-2
No files found.
dlls/comdlg32/filedlg31.c
View file @
4ff3d995
...
...
@@ -312,8 +312,10 @@ static void FD31_UpdateResult(const FD31_DATA *lfs, const WCHAR *tmpstr)
if
(
lenstr2
>
3
)
tmpstr2
[
lenstr2
++
]
=
'\\'
;
lstrcpynW
(
tmpstr2
+
lenstr2
,
tmpstr
,
BUFFILE
-
lenstr2
);
if
(
ofnW
->
lpstrFile
)
lstrcpynW
(
ofnW
->
lpstrFile
,
tmpstr2
,
ofnW
->
nMaxFile
);
if
(
!
ofnW
->
lpstrFile
)
return
;
lstrcpynW
(
ofnW
->
lpstrFile
,
tmpstr2
,
ofnW
->
nMaxFile
);
/* set filename offset */
p
=
PathFindFileNameW
(
ofnW
->
lpstrFile
);
...
...
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