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
a1b2fc2a
Commit
a1b2fc2a
authored
May 10, 2000
by
Gerard Patel
Committed by
Alexandre Julliard
May 10, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect against use of comctl32 private control memory after it has
been freed.
parent
7b6ed869
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
62 additions
and
11 deletions
+62
-11
animate.c
dlls/comctl32/animate.c
+4
-0
comboex.c
dlls/comctl32/comboex.c
+5
-1
header.c
dlls/comctl32/header.c
+4
-1
hotkey.c
dlls/comctl32/hotkey.c
+4
-1
ipaddress.c
dlls/comctl32/ipaddress.c
+4
-0
listview.c
dlls/comctl32/listview.c
+4
-0
monthcal.c
dlls/comctl32/monthcal.c
+4
-1
pager.c
dlls/comctl32/pager.c
+4
-1
progress.c
dlls/comctl32/progress.c
+3
-1
rebar.c
dlls/comctl32/rebar.c
+4
-1
status.c
dlls/comctl32/status.c
+5
-1
tab.c
dlls/comctl32/tab.c
+6
-0
tooltips.c
dlls/comctl32/tooltips.c
+4
-1
trackbar.c
dlls/comctl32/trackbar.c
+4
-0
updown.c
dlls/comctl32/updown.c
+3
-2
No files found.
dlls/comctl32/animate.c
View file @
a1b2fc2a
...
@@ -604,6 +604,7 @@ static LRESULT ANIMATE_Destroy(HWND hWnd, WPARAM wParam, LPARAM lParam)
...
@@ -604,6 +604,7 @@ static LRESULT ANIMATE_Destroy(HWND hWnd, WPARAM wParam, LPARAM lParam)
/* free animate info data */
/* free animate info data */
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hWnd
,
0
,
0
);
FreeLibrary
(
hModWinmm
);
FreeLibrary
(
hModWinmm
);
return
0
;
return
0
;
...
@@ -643,6 +644,9 @@ static LRESULT WINAPI ANIMATE_Size(HWND hWnd, WPARAM wParam, LPARAM lParam)
...
@@ -643,6 +644,9 @@ static LRESULT WINAPI ANIMATE_Size(HWND hWnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
WINAPI
ANIMATE_WindowProc
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
LRESULT
WINAPI
ANIMATE_WindowProc
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x msg=%x wparam=%x lparam=%lx
\n
"
,
hWnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
ANIMATE_GetInfoPtr
(
hWnd
)
&&
(
uMsg
!=
WM_NCCREATE
))
return
DefWindowProcA
(
hWnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
case
ACM_OPENA
:
case
ACM_OPENA
:
...
...
dlls/comctl32/comboex.c
View file @
a1b2fc2a
...
@@ -201,7 +201,7 @@ COMBOEX_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -201,7 +201,7 @@ COMBOEX_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
;
}
}
...
@@ -224,6 +224,10 @@ COMBOEX_Size (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -224,6 +224,10 @@ COMBOEX_Size (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
COMBOEX_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
COMBOEX_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x msg=%x wparam=%x lParam=%lx
\n
"
,
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
COMBOEX_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
/* case CBEM_DELETEITEM: */
/* case CBEM_DELETEITEM: */
...
...
dlls/comctl32/header.c
View file @
a1b2fc2a
...
@@ -1130,7 +1130,7 @@ HEADER_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1130,7 +1130,7 @@ HEADER_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
ImageList_Destroy
(
infoPtr
->
himl
);
ImageList_Destroy
(
infoPtr
->
himl
);
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
}
}
...
@@ -1454,6 +1454,9 @@ HEADER_SetFont (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1454,6 +1454,9 @@ HEADER_SetFont (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
HEADER_WindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
HEADER_WindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x msg=%x wparam=%x lParam=%lx
\n
"
,
hwnd
,
msg
,
wParam
,
lParam
);
if
(
!
HEADER_GetInfoPtr
(
hwnd
)
&&
(
msg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
switch
(
msg
)
{
switch
(
msg
)
{
case
HDM_CREATEDRAGIMAGE
:
case
HDM_CREATEDRAGIMAGE
:
return
HEADER_CreateDragImage
(
hwnd
,
wParam
);
return
HEADER_CreateDragImage
(
hwnd
,
wParam
);
...
...
dlls/comctl32/hotkey.c
View file @
a1b2fc2a
...
@@ -66,7 +66,7 @@ HOTKEY_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -66,7 +66,7 @@ HOTKEY_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* free hotkey info data */
/* free hotkey info data */
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
}
}
...
@@ -269,6 +269,9 @@ HOTKEY_SysKeyUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -269,6 +269,9 @@ HOTKEY_SysKeyUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
HOTKEY_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
HOTKEY_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x msg=%x wparam=%x lparam=%lx
\n
"
,
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
HOTKEY_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
/* case HKM_GETHOTKEY: */
/* case HKM_GETHOTKEY: */
...
...
dlls/comctl32/ipaddress.c
View file @
a1b2fc2a
...
@@ -140,6 +140,7 @@ IPADDRESS_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -140,6 +140,7 @@ IPADDRESS_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
}
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
}
}
...
@@ -594,6 +595,9 @@ IPADDRESS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -594,6 +595,9 @@ IPADDRESS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
IPADDRESS_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
IPADDRESS_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x msg=%x wparam=%x lparam=%lx
\n
"
,
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
IPADDRESS_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
case
IPM_CLEARADDRESS
:
case
IPM_CLEARADDRESS
:
...
...
dlls/comctl32/listview.c
View file @
a1b2fc2a
...
@@ -6710,6 +6710,7 @@ static LRESULT LISTVIEW_NCDestroy(HWND hwnd)
...
@@ -6710,6 +6710,7 @@ static LRESULT LISTVIEW_NCDestroy(HWND hwnd)
/* free listview info pointer*/
/* free listview info pointer*/
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
}
}
...
@@ -7300,6 +7301,9 @@ static INT LISTVIEW_StyleChanged(HWND hwnd, WPARAM wStyleType,
...
@@ -7300,6 +7301,9 @@ static INT LISTVIEW_StyleChanged(HWND hwnd, WPARAM wStyleType,
static
LRESULT
WINAPI
LISTVIEW_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
static
LRESULT
WINAPI
LISTVIEW_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x uMsg=%x wParam=%x lParam=%lx
\n
"
,
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
GetWindowLongA
(
hwnd
,
0
)
&&
(
uMsg
!=
WM_NCCREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
case
LVM_APPROXIMATEVIEWRECT
:
case
LVM_APPROXIMATEVIEWRECT
:
...
...
dlls/comctl32/monthcal.c
View file @
a1b2fc2a
...
@@ -1621,7 +1621,7 @@ MONTHCAL_Destroy(HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1621,7 +1621,7 @@ MONTHCAL_Destroy(HWND hwnd, WPARAM wParam, LPARAM lParam)
/* free month calendar info data */
/* free month calendar info data */
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
}
}
...
@@ -1629,6 +1629,9 @@ MONTHCAL_Destroy(HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1629,6 +1629,9 @@ MONTHCAL_Destroy(HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
MONTHCAL_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
MONTHCAL_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x msg=%x wparam=%x lparam=%lx
\n
"
,
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
MONTHCAL_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
case
MCM_GETCURSEL
:
case
MCM_GETCURSEL
:
...
...
dlls/comctl32/pager.c
View file @
a1b2fc2a
...
@@ -230,7 +230,7 @@ PAGER_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -230,7 +230,7 @@ PAGER_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* free pager info data */
/* free pager info data */
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
}
}
...
@@ -290,6 +290,9 @@ PAGER_Size (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -290,6 +290,9 @@ PAGER_Size (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
PAGER_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
PAGER_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x msg=%x wparam=%x lparam=%lx
\n
"
,
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
PAGER_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
case
PGM_FORWARDMOUSE
:
case
PGM_FORWARDMOUSE
:
...
...
dlls/comctl32/progress.c
View file @
a1b2fc2a
...
@@ -198,7 +198,8 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
...
@@ -198,7 +198,8 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
{
{
PROGRESS_INFO
*
infoPtr
=
PROGRESS_GetInfoPtr
(
hwnd
);
PROGRESS_INFO
*
infoPtr
=
PROGRESS_GetInfoPtr
(
hwnd
);
UINT
temp
;
UINT
temp
;
if
(
!
infoPtr
&&
(
message
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
message
,
wParam
,
lParam
);
switch
(
message
)
switch
(
message
)
{
{
case
WM_NCCREATE
:
case
WM_NCCREATE
:
...
@@ -229,6 +230,7 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
...
@@ -229,6 +230,7 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
case
WM_DESTROY
:
case
WM_DESTROY
:
TRACE
(
"Progress Ctrl destruction, hwnd=%04x
\n
"
,
hwnd
);
TRACE
(
"Progress Ctrl destruction, hwnd=%04x
\n
"
,
hwnd
);
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
break
;
break
;
case
WM_ERASEBKGND
:
case
WM_ERASEBKGND
:
...
...
dlls/comctl32/rebar.c
View file @
a1b2fc2a
...
@@ -1680,7 +1680,7 @@ REBAR_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1680,7 +1680,7 @@ REBAR_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* free rebar info data */
/* free rebar info data */
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
TRACE
(
"destroyed!
\n
"
);
TRACE
(
"destroyed!
\n
"
);
return
0
;
return
0
;
}
}
...
@@ -1886,6 +1886,9 @@ REBAR_Size (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1886,6 +1886,9 @@ REBAR_Size (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
REBAR_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
REBAR_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x msg=%x wparam=%x lparam=%lx
\n
"
,
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
REBAR_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
/* case RB_BEGINDRAG: */
/* case RB_BEGINDRAG: */
...
...
dlls/comctl32/status.c
View file @
a1b2fc2a
...
@@ -901,7 +901,7 @@ STATUSBAR_WMDestroy (HWND hwnd)
...
@@ -901,7 +901,7 @@ STATUSBAR_WMDestroy (HWND hwnd)
DestroyWindow
(
self
->
hwndToolTip
);
DestroyWindow
(
self
->
hwndToolTip
);
COMCTL32_Free
(
self
);
COMCTL32_Free
(
self
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
}
}
...
@@ -1098,6 +1098,10 @@ STATUSBAR_SendNotify (HWND hwnd, UINT code)
...
@@ -1098,6 +1098,10 @@ STATUSBAR_SendNotify (HWND hwnd, UINT code)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
StatusWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
StatusWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x msg=%x wparam=%x lparam=%lx
\n
"
,
hwnd
,
msg
,
wParam
,
lParam
);
if
(
!
(
STATUSBAR_GetInfoPtr
(
hwnd
))
&&
(
msg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
switch
(
msg
)
{
switch
(
msg
)
{
case
SB_GETBORDERS
:
case
SB_GETBORDERS
:
return
STATUSBAR_GetBorders
(
lParam
);
return
STATUSBAR_GetBorders
(
lParam
);
...
...
dlls/comctl32/tab.c
View file @
a1b2fc2a
...
@@ -1931,12 +1931,18 @@ TAB_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1931,12 +1931,18 @@ TAB_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
DestroyWindow
(
infoPtr
->
hwndUpDown
);
DestroyWindow
(
infoPtr
->
hwndUpDown
);
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
}
}
static
LRESULT
WINAPI
static
LRESULT
WINAPI
TAB_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
TAB_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x msg=%x wParam=%x lParam=%lx
\n
"
,
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
TAB_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
case
TCM_GETIMAGELIST
:
case
TCM_GETIMAGELIST
:
...
...
dlls/comctl32/tooltips.c
View file @
a1b2fc2a
...
@@ -1961,7 +1961,7 @@ TOOLTIPS_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1961,7 +1961,7 @@ TOOLTIPS_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* free tool tips info data */
/* free tool tips info data */
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
}
}
...
@@ -2233,6 +2233,9 @@ TOOLTIPS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -2233,6 +2233,9 @@ TOOLTIPS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static
LRESULT
CALLBACK
static
LRESULT
CALLBACK
TOOLTIPS_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x msg=%x wparam=%x lParam=%lx
\n
"
,
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
(
TOOLTIPS_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_CREATE
)))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
case
TTM_ACTIVATE
:
case
TTM_ACTIVATE
:
...
...
dlls/comctl32/trackbar.c
View file @
a1b2fc2a
...
@@ -1118,6 +1118,7 @@ TRACKBAR_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1118,6 +1118,7 @@ TRACKBAR_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
DestroyWindow
(
infoPtr
->
hwndToolTip
);
DestroyWindow
(
infoPtr
->
hwndToolTip
);
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
}
}
...
@@ -1449,6 +1450,9 @@ TRACKBAR_KeyUp (HWND hwnd, WPARAM wParam)
...
@@ -1449,6 +1450,9 @@ TRACKBAR_KeyUp (HWND hwnd, WPARAM wParam)
static
LRESULT
WINAPI
static
LRESULT
WINAPI
TRACKBAR_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
TRACKBAR_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%x msg=%x wparam=%x lparam=%lx
\n
"
,
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
TRACKBAR_GetInfoPtr
(
hwnd
)
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
switch
(
uMsg
)
{
{
case
TBM_CLEARSEL
:
case
TBM_CLEARSEL
:
...
...
dlls/comctl32/updown.c
View file @
a1b2fc2a
...
@@ -699,7 +699,8 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam,
...
@@ -699,7 +699,8 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam,
UPDOWN_INFO
*
infoPtr
=
UPDOWN_GetInfoPtr
(
hwnd
);
UPDOWN_INFO
*
infoPtr
=
UPDOWN_GetInfoPtr
(
hwnd
);
DWORD
dwStyle
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
DWORD
dwStyle
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
int
temp
;
int
temp
;
if
(
!
infoPtr
&&
(
message
!=
WM_CREATE
)
&&
(
message
!=
WM_NCCREATE
))
return
DefWindowProcA
(
hwnd
,
message
,
wParam
,
lParam
);
switch
(
message
)
switch
(
message
)
{
{
case
WM_NCCREATE
:
case
WM_NCCREATE
:
...
@@ -733,7 +734,7 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam,
...
@@ -733,7 +734,7 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam,
RemovePropA
(
infoPtr
->
Buddy
,
BUDDY_UPDOWN_HWND
);
RemovePropA
(
infoPtr
->
Buddy
,
BUDDY_UPDOWN_HWND
);
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
TRACE
(
"UpDown Ctrl destruction, hwnd=%04x
\n
"
,
hwnd
);
TRACE
(
"UpDown Ctrl destruction, hwnd=%04x
\n
"
,
hwnd
);
break
;
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