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
64e169d9
Commit
64e169d9
authored
Oct 30, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Oct 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Avoid memory leaks (coverity).
parent
92473283
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
message.c
dlls/user32/message.c
+5
-1
text.c
dlls/user32/text.c
+8
-1
No files found.
dlls/user32/message.c
View file @
64e169d9
...
@@ -2903,7 +2903,11 @@ static BOOL peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags
...
@@ -2903,7 +2903,11 @@ static BOOL peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags
handle_internal_message
(
info
.
msg
.
hwnd
,
info
.
msg
.
message
,
handle_internal_message
(
info
.
msg
.
hwnd
,
info
.
msg
.
message
,
info
.
msg
.
wParam
,
info
.
msg
.
lParam
);
info
.
msg
.
wParam
,
info
.
msg
.
lParam
);
/* if this is a nested call return right away */
/* if this is a nested call return right away */
if
(
first
==
info
.
msg
.
message
&&
last
==
info
.
msg
.
message
)
return
FALSE
;
if
(
first
==
info
.
msg
.
message
&&
last
==
info
.
msg
.
message
)
{
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
FALSE
;
}
}
}
else
else
peek_message
(
msg
,
info
.
msg
.
hwnd
,
info
.
msg
.
message
,
peek_message
(
msg
,
info
.
msg
.
hwnd
,
info
.
msg
.
message
,
...
...
dlls/user32/text.c
View file @
64e169d9
...
@@ -985,7 +985,10 @@ INT WINAPI DrawTextExW( HDC hdc, LPWSTR str, INT i_count,
...
@@ -985,7 +985,10 @@ INT WINAPI DrawTextExW( HDC hdc, LPWSTR str, INT i_count,
p
=
str
;
while
(
p
<
str
+
len
&&
*
p
!=
TAB
)
p
++
;
p
=
str
;
while
(
p
<
str
+
len
&&
*
p
!=
TAB
)
p
++
;
len_seg
=
p
-
str
;
len_seg
=
p
-
str
;
if
(
len_seg
!=
len
&&
!
GetTextExtentPointW
(
hdc
,
str
,
len_seg
,
&
size
))
if
(
len_seg
!=
len
&&
!
GetTextExtentPointW
(
hdc
,
str
,
len_seg
,
&
size
))
{
HeapFree
(
GetProcessHeap
(),
0
,
retstr
);
return
0
;
return
0
;
}
}
}
else
else
len_seg
=
len
;
len_seg
=
len
;
...
@@ -993,7 +996,11 @@ INT WINAPI DrawTextExW( HDC hdc, LPWSTR str, INT i_count,
...
@@ -993,7 +996,11 @@ INT WINAPI DrawTextExW( HDC hdc, LPWSTR str, INT i_count,
if
(
!
ExtTextOutW
(
hdc
,
xseg
,
y
,
if
(
!
ExtTextOutW
(
hdc
,
xseg
,
y
,
((
flags
&
DT_NOCLIP
)
?
0
:
ETO_CLIPPED
)
|
((
flags
&
DT_NOCLIP
)
?
0
:
ETO_CLIPPED
)
|
((
flags
&
DT_RTLREADING
)
?
ETO_RTLREADING
:
0
),
((
flags
&
DT_RTLREADING
)
?
ETO_RTLREADING
:
0
),
rect
,
str
,
len_seg
,
NULL
))
return
0
;
rect
,
str
,
len_seg
,
NULL
))
{
HeapFree
(
GetProcessHeap
(),
0
,
retstr
);
return
0
;
}
if
(
prefix_offset
!=
-
1
&&
prefix_offset
<
len_seg
)
if
(
prefix_offset
!=
-
1
&&
prefix_offset
<
len_seg
)
{
{
TEXT_DrawUnderscore
(
hdc
,
xseg
,
y
+
tm
.
tmAscent
+
1
,
str
,
prefix_offset
,
(
flags
&
DT_NOCLIP
)
?
NULL
:
rect
);
TEXT_DrawUnderscore
(
hdc
,
xseg
,
y
+
tm
.
tmAscent
+
1
,
str
,
prefix_offset
,
(
flags
&
DT_NOCLIP
)
?
NULL
:
rect
);
...
...
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