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
130e2179
Commit
130e2179
authored
May 12, 2003
by
Huw Davies
Committed by
Alexandre Julliard
May 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a possible memory corruption.
Fixed a memory leak.
parent
cfd60b21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
monthcal.c
dlls/comctl32/monthcal.c
+4
-2
No files found.
dlls/comctl32/monthcal.c
View file @
130e2179
...
@@ -974,8 +974,8 @@ MONTHCAL_SetRange(HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -974,8 +974,8 @@ MONTHCAL_SetRange(HWND hwnd, WPARAM wParam, LPARAM lParam)
infoPtr
->
monthRange
=
infoPtr
->
maxDate
.
wMonth
-
infoPtr
->
minDate
.
wMonth
;
infoPtr
->
monthRange
=
infoPtr
->
maxDate
.
wMonth
-
infoPtr
->
minDate
.
wMonth
;
if
(
infoPtr
->
monthRange
!=
prev
)
{
if
(
infoPtr
->
monthRange
!=
prev
)
{
COMCTL32_ReAlloc
(
infoPtr
->
monthdayState
,
infoPtr
->
monthdayState
=
COMCTL32_ReAlloc
(
infoPtr
->
monthdayState
,
infoPtr
->
monthRange
*
sizeof
(
MONTHDAYSTATE
));
infoPtr
->
monthRange
*
sizeof
(
MONTHDAYSTATE
));
}
}
return
1
;
return
1
;
...
@@ -1919,6 +1919,8 @@ MONTHCAL_Destroy(HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1919,6 +1919,8 @@ MONTHCAL_Destroy(HWND hwnd, WPARAM wParam, LPARAM lParam)
MONTHCAL_INFO
*
infoPtr
=
MONTHCAL_GetInfoPtr
(
hwnd
);
MONTHCAL_INFO
*
infoPtr
=
MONTHCAL_GetInfoPtr
(
hwnd
);
/* free month calendar info data */
/* free month calendar info data */
if
(
infoPtr
->
monthdayState
)
COMCTL32_Free
(
infoPtr
->
monthdayState
);
COMCTL32_Free
(
infoPtr
);
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
return
0
;
...
...
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