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
429d0d3e
Commit
429d0d3e
authored
Dec 05, 2007
by
Peter Oberndorfer
Committed by
Alexandre Julliard
Dec 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: EnumMRUListA/W fix getting list size by negative item pos.
parent
dac63ff6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
comctl32undoc.c
dlls/comctl32/comctl32undoc.c
+2
-2
mru.c
dlls/comctl32/tests/mru.c
+0
-2
No files found.
dlls/comctl32/comctl32undoc.c
View file @
429d0d3e
...
...
@@ -834,8 +834,8 @@ INT WINAPI EnumMRUListW (HANDLE hList, INT nItemPos, LPVOID lpBuffer,
const
WINEMRUITEM
*
witem
;
INT
desired
,
datasize
;
if
(
nItemPos
>=
mp
->
cursize
)
return
-
1
;
if
((
nItemPos
<
0
)
||
!
lpBuffer
)
return
mp
->
cursize
;
if
(
nItemPos
>=
mp
->
cursize
)
return
-
1
;
desired
=
mp
->
realMRU
[
nItemPos
];
desired
-=
'a'
;
TRACE
(
"nItemPos=%d, desired=%d
\n
"
,
nItemPos
,
desired
);
...
...
@@ -860,8 +860,8 @@ INT WINAPI EnumMRUListA (HANDLE hList, INT nItemPos, LPVOID lpBuffer,
INT
desired
,
datasize
;
DWORD
lenA
;
if
(
nItemPos
>=
mp
->
cursize
)
return
-
1
;
if
((
nItemPos
<
0
)
||
!
lpBuffer
)
return
mp
->
cursize
;
if
(
nItemPos
>=
mp
->
cursize
)
return
-
1
;
desired
=
mp
->
realMRU
[
nItemPos
];
desired
-=
'a'
;
TRACE
(
"nItemPos=%d, desired=%d
\n
"
,
nItemPos
,
desired
);
...
...
dlls/comctl32/tests/mru.c
View file @
429d0d3e
...
...
@@ -288,7 +288,6 @@ static void test_MRUListA(void)
iRet
=
pEnumMRUList
(
hMRU
,
0
,
NULL
,
0
);
ok
(
iRet
==
3
,
"EnumMRUList expected %d, got %d
\n
"
,
LIST_SIZE
,
iRet
);
todo_wine
{
/* negative item pos = get list size */
iRet
=
pEnumMRUList
(
hMRU
,
-
1
,
NULL
,
0
);
ok
(
iRet
==
3
,
"EnumMRUList expected %d, got %d
\n
"
,
LIST_SIZE
,
iRet
);
...
...
@@ -304,7 +303,6 @@ static void test_MRUListA(void)
/* negative item pos = get list size */
iRet
=
pEnumMRUList
(
hMRU
,
-
5
,
buffer
,
255
);
ok
(
iRet
==
3
,
"EnumMRUList expected %d, got %d
\n
"
,
LIST_SIZE
,
iRet
);
}
/* check entry 0 */
buffer
[
0
]
=
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