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
39413f81
Commit
39413f81
authored
Oct 11, 1998
by
David Luyer
Committed by
Alexandre Julliard
Oct 11, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes.
parent
0dce5b75
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
combo.c
controls/combo.c
+4
-3
tab.c
dlls/comctl32/tab.c
+1
-1
heap.c
memory/heap.c
+5
-0
No files found.
controls/combo.c
View file @
39413f81
...
...
@@ -425,7 +425,7 @@ static void CBPaintText(LPHEADCOMBO lphc, HDC32 hdc)
if
(
lphc
->
wState
&
CBF_EDIT
)
{
if
(
CB_HASSTRINGS
(
lphc
)
)
SetWindowText32A
(
lphc
->
hWndEdit
,
pText
);
if
(
CB_HASSTRINGS
(
lphc
)
)
SetWindowText32A
(
lphc
->
hWndEdit
,
pText
?
pText
:
""
);
if
(
lphc
->
wState
&
CBF_FOCUSED
)
SendMessage32A
(
lphc
->
hWndEdit
,
EM_SETSEL32
,
0
,
(
LPARAM
)(
-
1
));
}
...
...
@@ -491,7 +491,7 @@ static void CBPaintText(LPHEADCOMBO lphc, HDC32 hdc)
{
ExtTextOut32A
(
hDC
,
rect
.
left
+
1
,
rect
.
top
+
1
,
ETO_OPAQUE
|
ETO_CLIPPED
,
&
rect
,
(
pText
)
?
pText
:
""
,
size
,
NULL
);
pText
?
pText
:
""
,
size
,
NULL
);
if
(
lphc
->
wState
&
CBF_FOCUSED
&&
!
(
lphc
->
wState
&
CBF_DROPPED
))
DrawFocusRect32
(
hDC
,
&
rect
);
}
...
...
@@ -504,7 +504,8 @@ static void CBPaintText(LPHEADCOMBO lphc, HDC32 hdc)
}
}
}
HeapFree
(
GetProcessHeap
(),
0
,
pText
);
if
(
pText
)
HeapFree
(
GetProcessHeap
(),
0
,
pText
);
}
/***********************************************************************
...
...
dlls/comctl32/tab.c
View file @
39413f81
...
...
@@ -262,7 +262,7 @@ TAB_InsertItem (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
/* post insert copy */
if
(
iItem
<
infoPtr
->
uNumItem
-
1
)
{
memcpy
(
&
infoPtr
->
items
[
iItem
+
1
],
&
oldItems
[
iItem
],
(
infoPtr
->
uNumItem
-
iItem
)
*
sizeof
(
TAB_ITEM
));
(
infoPtr
->
uNumItem
-
iItem
-
1
)
*
sizeof
(
TAB_ITEM
));
}
...
...
memory/heap.c
View file @
39413f81
...
...
@@ -1001,6 +1001,11 @@ BOOL32 WINAPI HeapFree(
flags
&=
HEAP_NO_SERIALIZE
;
flags
|=
heapPtr
->
flags
;
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
HeapLock
(
heap
);
if
(
!
ptr
)
{
WARN
(
heap
,
"(%08x,%08lx,%08lx): asked to free NULL
\n
"
,
heap
,
flags
,
(
DWORD
)
ptr
);
}
if
(
!
ptr
||
!
HeapValidate
(
heap
,
HEAP_NO_SERIALIZE
,
ptr
))
{
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
HeapUnlock
(
heap
);
...
...
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