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
f05618bd
Commit
f05618bd
authored
May 02, 2001
by
Marcus Meissner
Committed by
Alexandre Julliard
May 02, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not HeapFree() memory not allocated by us in COMBO_GetText.
Convert return value from LB_GETTEXT into COMBO_GetText.
parent
3ee02bab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
combo.c
controls/combo.c
+9
-2
No files found.
controls/combo.c
View file @
f05618bd
...
@@ -1498,6 +1498,9 @@ static LRESULT COMBO_ItemOp( LPHEADCOMBO lphc, UINT msg, LPARAM lParam )
...
@@ -1498,6 +1498,9 @@ static LRESULT COMBO_ItemOp( LPHEADCOMBO lphc, UINT msg, LPARAM lParam )
/***********************************************************************
/***********************************************************************
* COMBO_GetText
* COMBO_GetText
*
* NOTE! LB_GETTEXT does not count terminating \0, WM_GETTEXT does.
* also LB_GETTEXT might return values < 0, WM_GETTEXT doesn't.
*/
*/
static
LRESULT
COMBO_GetText
(
LPHEADCOMBO
lphc
,
INT
N
,
LPARAM
lParam
,
BOOL
unicode
)
static
LRESULT
COMBO_GetText
(
LPHEADCOMBO
lphc
,
INT
N
,
LPARAM
lParam
,
BOOL
unicode
)
{
{
...
@@ -1539,8 +1542,8 @@ static LRESULT COMBO_GetText( LPHEADCOMBO lphc, INT N, LPARAM lParam, BOOL unico
...
@@ -1539,8 +1542,8 @@ static LRESULT COMBO_GetText( LPHEADCOMBO lphc, INT N, LPARAM lParam, BOOL unico
strncpyW
(
lpText
,
lpBuffer
,
(
N
>
n
)
?
n
+
1
:
N
-
1
);
strncpyW
(
lpText
,
lpBuffer
,
(
N
>
n
)
?
n
+
1
:
N
-
1
);
lpText
[
N
-
1
]
=
'\0'
;
lpText
[
N
-
1
]
=
'\0'
;
}
}
HeapFree
(
GetProcessHeap
(),
0
,
lpBuffer
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
lpBuffer
);
}
}
}
}
else
else
...
@@ -1566,10 +1569,14 @@ static LRESULT COMBO_GetText( LPHEADCOMBO lphc, INT N, LPARAM lParam, BOOL unico
...
@@ -1566,10 +1569,14 @@ static LRESULT COMBO_GetText( LPHEADCOMBO lphc, INT N, LPARAM lParam, BOOL unico
strncpy
(
lpText
,
lpBuffer
,
(
N
>
n
)
?
n
+
1
:
N
-
1
);
strncpy
(
lpText
,
lpBuffer
,
(
N
>
n
)
?
n
+
1
:
N
-
1
);
lpText
[
N
-
1
]
=
'\0'
;
lpText
[
N
-
1
]
=
'\0'
;
}
}
HeapFree
(
GetProcessHeap
(),
0
,
lpBuffer
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
lpBuffer
);
}
}
}
}
if
(
n
<
0
)
n
=
0
;
else
n
++
;
return
(
LRESULT
)
n
;
return
(
LRESULT
)
n
;
}
}
}
}
...
...
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