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
f1bd9ae2
Commit
f1bd9ae2
authored
May 30, 2006
by
Troy Rollo
Committed by
Alexandre Julliard
May 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Prevent SEGV in FILEOPEN95_OnOpen when a malformed filter is passed.
FILEOPEN95_OnOpen assumes that each item in the filter list returns a non-NULL pointer for CB_GETITEMDATA.
parent
93fd4c12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
filedlg.c
dlls/comdlg32/filedlg.c
+3
-2
No files found.
dlls/comdlg32/filedlg.c
View file @
f1bd9ae2
...
...
@@ -2370,8 +2370,6 @@ static HRESULT FILEDLG95_FILETYPE_Init(HWND hwnd)
CBAddStringW
(
fodInfos
->
DlgInfos
.
hwndFileTypeCB
,
lpstrDisplay
);
nFilters
++
;
/* malformed filters are added anyway... */
if
(
!*
lpstrPos
)
break
;
/* Copy the extensions */
if
(
!
(
lpstrExt
=
MemAlloc
((
strlenW
(
lpstrPos
)
+
1
)
*
sizeof
(
WCHAR
))))
return
E_FAIL
;
...
...
@@ -2380,6 +2378,9 @@ static HRESULT FILEDLG95_FILETYPE_Init(HWND hwnd)
/* Add the item at the end of the combo */
CBSetItemDataPtr
(
fodInfos
->
DlgInfos
.
hwndFileTypeCB
,
nFilters
-
1
,
lpstrExt
);
/* malformed filters are added anyway... */
if
(
!*
lpstrExt
)
break
;
}
}
...
...
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