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
26ec350b
Commit
26ec350b
authored
Oct 19, 2013
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Nov 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Make mru.c, pager.c and syslink.c compile with -D__WINESRC__.
parent
52948460
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
mru.c
dlls/comctl32/tests/mru.c
+4
-4
pager.c
dlls/comctl32/tests/pager.c
+2
-2
syslink.c
dlls/comctl32/tests/syslink.c
+3
-3
No files found.
dlls/comctl32/tests/mru.c
View file @
26ec350b
...
...
@@ -409,7 +409,7 @@ static void test_MRUListA(void)
/* check entry 0 */
buffer
[
0
]
=
0
;
iRet
=
pEnumMRUListA
(
hMRU
,
0
,
buffer
,
255
);
ok
(
iRet
==
lstrlen
(
checks
[
3
]),
"EnumMRUList expected %d, got %d
\n
"
,
lstrlen
(
checks
[
3
]),
iRet
);
ok
(
iRet
==
lstrlen
A
(
checks
[
3
]),
"EnumMRUList expected %d, got %d
\n
"
,
lstrlenA
(
checks
[
3
]),
iRet
);
ok
(
strcmp
(
buffer
,
checks
[
3
])
==
0
,
"EnumMRUList expected %s, got %s
\n
"
,
checks
[
3
],
buffer
);
/* check entry 0 with a too small buffer */
...
...
@@ -418,7 +418,7 @@ static void test_MRUListA(void)
buffer
[
2
]
=
'A'
;
/* unchanged */
buffer
[
3
]
=
0
;
/* unchanged */
iRet
=
pEnumMRUListA
(
hMRU
,
0
,
buffer
,
2
);
ok
(
iRet
==
lstrlen
(
checks
[
3
]),
"EnumMRUList expected %d, got %d
\n
"
,
lstrlen
(
checks
[
3
]),
iRet
);
ok
(
iRet
==
lstrlen
A
(
checks
[
3
]),
"EnumMRUList expected %d, got %d
\n
"
,
lstrlenA
(
checks
[
3
]),
iRet
);
ok
(
strcmp
(
buffer
,
"T"
)
==
0
,
"EnumMRUList expected %s, got %s
\n
"
,
"T"
,
buffer
);
/* make sure space after buffer has old values */
ok
(
buffer
[
2
]
==
'A'
,
"EnumMRUList expected %02x, got %02x
\n
"
,
'A'
,
buffer
[
2
]);
...
...
@@ -426,13 +426,13 @@ static void test_MRUListA(void)
/* check entry 1 */
buffer
[
0
]
=
0
;
iRet
=
pEnumMRUListA
(
hMRU
,
1
,
buffer
,
255
);
ok
(
iRet
==
lstrlen
(
checks
[
1
]),
"EnumMRUList expected %d, got %d
\n
"
,
lstrlen
(
checks
[
1
]),
iRet
);
ok
(
iRet
==
lstrlen
A
(
checks
[
1
]),
"EnumMRUList expected %d, got %d
\n
"
,
lstrlenA
(
checks
[
1
]),
iRet
);
ok
(
strcmp
(
buffer
,
checks
[
1
])
==
0
,
"EnumMRUList expected %s, got %s
\n
"
,
checks
[
1
],
buffer
);
/* check entry 2 */
buffer
[
0
]
=
0
;
iRet
=
pEnumMRUListA
(
hMRU
,
2
,
buffer
,
255
);
ok
(
iRet
==
lstrlen
(
checks
[
2
]),
"EnumMRUList expected %d, got %d
\n
"
,
lstrlen
(
checks
[
2
]),
iRet
);
ok
(
iRet
==
lstrlen
A
(
checks
[
2
]),
"EnumMRUList expected %d, got %d
\n
"
,
lstrlenA
(
checks
[
2
]),
iRet
);
ok
(
strcmp
(
buffer
,
checks
[
2
])
==
0
,
"EnumMRUList expected %s, got %s
\n
"
,
checks
[
2
],
buffer
);
/* check out of bounds entry 3 */
...
...
dlls/comctl32/tests/pager.c
View file @
26ec350b
...
...
@@ -100,7 +100,7 @@ static BOOL register_parent_wnd_class(void)
cls
.
cbWndExtra
=
0
;
cls
.
hInstance
=
GetModuleHandleA
(
NULL
);
cls
.
hIcon
=
0
;
cls
.
hCursor
=
LoadCursorA
(
0
,
IDC_ARROW
);
cls
.
hCursor
=
LoadCursorA
(
0
,
(
LPCSTR
)
IDC_ARROW
);
cls
.
hbrBackground
=
GetStockObject
(
WHITE_BRUSH
);
cls
.
lpszMenuName
=
NULL
;
cls
.
lpszClassName
=
"Pager test parent class"
;
...
...
@@ -112,7 +112,7 @@ static HWND create_parent_window(void)
if
(
!
register_parent_wnd_class
())
return
NULL
;
return
CreateWindow
(
"Pager test parent class"
,
"Pager test parent window"
,
return
CreateWindow
A
(
"Pager test parent class"
,
"Pager test parent window"
,
WS_OVERLAPPED
|
WS_VISIBLE
,
0
,
0
,
200
,
200
,
0
,
NULL
,
GetModuleHandleA
(
NULL
),
NULL
);
}
...
...
dlls/comctl32/tests/syslink.c
View file @
26ec350b
...
...
@@ -70,7 +70,7 @@ static void flush_events(void)
while
(
diff
>
0
)
{
if
(
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
min_timeout
,
QS_ALLINPUT
)
==
WAIT_TIMEOUT
)
break
;
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
while
(
PeekMessage
A
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
diff
=
time
-
GetTickCount
();
}
}
...
...
@@ -245,8 +245,8 @@ START_TEST(syslink)
/* Make the SysLink control visible */
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCE
);
oldstyle
=
GetWindowLong
(
hWndSysLink
,
GWL_STYLE
);
SetWindowLong
(
hWndSysLink
,
GWL_STYLE
,
oldstyle
|
WS_VISIBLE
);
oldstyle
=
GetWindowLong
A
(
hWndSysLink
,
GWL_STYLE
);
SetWindowLong
A
(
hWndSysLink
,
GWL_STYLE
,
oldstyle
|
WS_VISIBLE
);
RedrawWindow
(
hWndSysLink
,
NULL
,
NULL
,
RDW_INVALIDATE
);
flush_events
();
ok_sequence
(
sequences
,
SYSLINK_SEQ_INDEX
,
visible_syslink_wnd_seq
,
"visible SysLink"
,
TRUE
);
...
...
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