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
db261c31
Commit
db261c31
authored
Feb 02, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/updown: Use HeapAlloc() wrappers.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e0883d8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
updown.c
dlls/comctl32/updown.c
+7
-6
No files found.
dlls/comctl32/updown.c
View file @
db261c31
...
...
@@ -42,6 +42,7 @@
#include "comctl32.h"
#include "uxtheme.h"
#include "vssym32.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#include "wine/debug.h"
...
...
@@ -920,7 +921,7 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
{
CREATESTRUCTW
*
pcs
=
(
CREATESTRUCTW
*
)
lParam
;
infoPtr
=
Alloc
(
sizeof
(
UPDOWN_INFO
));
infoPtr
=
heap_alloc_zero
(
sizeof
(
*
infoPtr
));
SetWindowLongPtrW
(
hwnd
,
0
,
(
DWORD_PTR
)
infoPtr
);
/* initialize the info struct */
...
...
@@ -953,9 +954,9 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
break
;
case
WM_DESTROY
:
F
ree
(
infoPtr
->
AccelVect
);
heap_f
ree
(
infoPtr
->
AccelVect
);
UPDOWN_ResetSubclass
(
infoPtr
);
F
ree
(
infoPtr
);
heap_f
ree
(
infoPtr
);
SetWindowLongPtrW
(
hwnd
,
0
,
0
);
theme
=
GetWindowTheme
(
hwnd
);
CloseThemeData
(
theme
);
...
...
@@ -1080,13 +1081,13 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
TRACE
(
"UDM_SETACCEL
\n
"
);
if
(
infoPtr
->
AccelVect
)
{
F
ree
(
infoPtr
->
AccelVect
);
heap_f
ree
(
infoPtr
->
AccelVect
);
infoPtr
->
AccelCount
=
0
;
infoPtr
->
AccelVect
=
0
;
}
if
(
wParam
==
0
)
return
TRUE
;
infoPtr
->
AccelVect
=
Alloc
(
wParam
*
sizeof
(
UDACCEL
));
if
(
infoPtr
->
AccelVect
==
0
)
return
FALSE
;
infoPtr
->
AccelVect
=
heap_alloc
(
wParam
*
sizeof
(
UDACCEL
));
if
(
!
infoPtr
->
AccelVect
)
return
FALSE
;
memcpy
(
infoPtr
->
AccelVect
,
(
void
*
)
lParam
,
wParam
*
sizeof
(
UDACCEL
));
infoPtr
->
AccelCount
=
wParam
;
...
...
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