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
841ef6eb
Commit
841ef6eb
authored
Feb 12, 2001
by
James Abbatiello
Committed by
Alexandre Julliard
Feb 12, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't allow comctl32 controls to access their infoPtr before it has
been allocated or after it has been freed.
parent
14150c1a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
15 deletions
+20
-15
datetime.c
dlls/comctl32/datetime.c
+4
-0
flatsb.c
dlls/comctl32/flatsb.c
+3
-0
nativefont.c
dlls/comctl32/nativefont.c
+4
-0
pager.c
dlls/comctl32/pager.c
+1
-1
toolbar.c
dlls/comctl32/toolbar.c
+8
-14
No files found.
dlls/comctl32/datetime.c
View file @
841ef6eb
...
@@ -1164,6 +1164,7 @@ DATETIME_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1164,6 +1164,7 @@ DATETIME_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
}
}
...
@@ -1171,6 +1172,9 @@ DATETIME_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1171,6 +1172,9 @@ DATETIME_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
DATETIME_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
DATETIME_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
if
(
!
DATETIME_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
...
...
dlls/comctl32/flatsb.c
View file @
841ef6eb
...
@@ -195,6 +195,9 @@ FlatSB_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -195,6 +195,9 @@ FlatSB_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
FlatSB_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
FlatSB_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
if
(
!
FlatSB_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
case
WM_CREATE
:
case
WM_CREATE
:
...
...
dlls/comctl32/nativefont.c
View file @
841ef6eb
...
@@ -55,6 +55,7 @@ NATIVEFONT_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -55,6 +55,7 @@ NATIVEFONT_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* free comboex info data */
/* free comboex info data */
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
}
}
...
@@ -64,6 +65,9 @@ NATIVEFONT_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -64,6 +65,9 @@ NATIVEFONT_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
NATIVEFONT_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
NATIVEFONT_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
if
(
!
NATIVEFONT_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
...
...
dlls/comctl32/pager.c
View file @
841ef6eb
...
@@ -1099,7 +1099,7 @@ PAGER_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -1099,7 +1099,7 @@ PAGER_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
PAGER_INFO
*
infoPtr
=
PAGER_GetInfoPtr
(
hwnd
);
PAGER_INFO
*
infoPtr
=
PAGER_GetInfoPtr
(
hwnd
);
if
(
!
infoPtr
&&
(
uMsg
!=
WM_CREATE
))
if
(
!
infoPtr
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
...
...
dlls/comctl32/toolbar.c
View file @
841ef6eb
...
@@ -4266,20 +4266,8 @@ TOOLBAR_StyleChanged (HWND hwnd, INT nType, LPSTYLESTRUCT lpStyle)
...
@@ -4266,20 +4266,8 @@ TOOLBAR_StyleChanged (HWND hwnd, INT nType, LPSTYLESTRUCT lpStyle)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
ToolbarWindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
ToolbarWindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
if
(
!
TOOLBAR_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_NCCREATE
))
switch
(
uMsg
)
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
{
case
WM_DESTROY
:
return
TOOLBAR_Destroy
(
hwnd
,
wParam
,
lParam
);
case
WM_NCCREATE
:
return
TOOLBAR_NCCreate
(
hwnd
,
wParam
,
lParam
);
}
if
(
!
TOOLBAR_GetInfoPtr
(
hwnd
))
{
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
}
switch
(
uMsg
)
switch
(
uMsg
)
{
{
...
@@ -4541,6 +4529,9 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -4541,6 +4529,9 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_CREATE
:
case
WM_CREATE
:
return
TOOLBAR_Create
(
hwnd
,
wParam
,
lParam
);
return
TOOLBAR_Create
(
hwnd
,
wParam
,
lParam
);
case
WM_DESTROY
:
return
TOOLBAR_Destroy
(
hwnd
,
wParam
,
lParam
);
case
WM_ERASEBKGND
:
case
WM_ERASEBKGND
:
return
TOOLBAR_EraseBackground
(
hwnd
,
wParam
,
lParam
);
return
TOOLBAR_EraseBackground
(
hwnd
,
wParam
,
lParam
);
...
@@ -4574,6 +4565,9 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -4574,6 +4565,9 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_NCCALCSIZE
:
case
WM_NCCALCSIZE
:
return
TOOLBAR_NCCalcSize
(
hwnd
,
wParam
,
lParam
);
return
TOOLBAR_NCCalcSize
(
hwnd
,
wParam
,
lParam
);
case
WM_NCCREATE
:
return
TOOLBAR_NCCreate
(
hwnd
,
wParam
,
lParam
);
case
WM_NCPAINT
:
case
WM_NCPAINT
:
return
TOOLBAR_NCPaint
(
hwnd
,
wParam
,
lParam
);
return
TOOLBAR_NCPaint
(
hwnd
,
wParam
,
lParam
);
...
...
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