Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0a4eebd7
Commit
0a4eebd7
authored
May 02, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
May 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Don't run tests on win9x if we are out of memory.
parent
587eda5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
11 deletions
+21
-11
console.c
dlls/kernel32/tests/console.c
+21
-11
No files found.
dlls/kernel32/tests/console.c
View file @
0a4eebd7
...
...
@@ -380,6 +380,7 @@ static void testScroll(HANDLE hCon, COORD sbSize)
SMALL_RECT
scroll
,
clip
;
COORD
dst
,
c
,
tc
;
CHAR_INFO
ci
;
BOOL
ret
;
#define W 11
#define H 7
...
...
@@ -473,23 +474,32 @@ static void testScroll(HANDLE hCon, COORD sbSize)
clip
.
Top
=
H
/
2
;
clip
.
Bottom
=
min
(
H
+
H
/
2
,
sbSize
.
Y
-
1
);
ok
(
ScrollConsoleScreenBuffer
(
hCon
,
&
scroll
,
&
clip
,
dst
,
&
ci
),
"Scrolling SB
\n
"
);
for
(
c
.
Y
=
0
;
c
.
Y
<
sbSize
.
Y
;
c
.
Y
++
)
SetLastError
(
0xdeadbeef
);
ret
=
ScrollConsoleScreenBuffer
(
hCon
,
&
scroll
,
&
clip
,
dst
,
&
ci
);
if
(
ret
)
{
for
(
c
.
X
=
0
;
c
.
X
<
sbSize
.
X
;
c
.
X
++
)
for
(
c
.
Y
=
0
;
c
.
Y
<
sbSize
.
Y
;
c
.
Y
++
)
{
if
(
IN_SRECT2
(
scroll
,
dst
,
c
)
&&
IN_SRECT
(
clip
,
c
)
)
for
(
c
.
X
=
0
;
c
.
X
<
sbSize
.
X
;
c
.
X
++
)
{
tc
.
X
=
c
.
X
-
dst
.
X
;
tc
.
Y
=
c
.
Y
-
dst
.
Y
;
okCHAR
(
hCon
,
c
,
CONTENT
(
tc
),
DEFAULT_ATTRIB
);
if
(
IN_SRECT2
(
scroll
,
dst
,
c
)
&&
IN_SRECT
(
clip
,
c
))
{
tc
.
X
=
c
.
X
-
dst
.
X
;
tc
.
Y
=
c
.
Y
-
dst
.
Y
;
okCHAR
(
hCon
,
c
,
CONTENT
(
tc
),
DEFAULT_ATTRIB
);
}
else
if
(
IN_SRECT
(
scroll
,
c
)
&&
IN_SRECT
(
clip
,
c
))
okCHAR
(
hCon
,
c
,
'#'
,
TEST_ATTRIB
);
else
okCHAR
(
hCon
,
c
,
CONTENT
(
c
),
DEFAULT_ATTRIB
);
}
else
if
(
IN_SRECT
(
scroll
,
c
)
&&
IN_SRECT
(
clip
,
c
))
okCHAR
(
hCon
,
c
,
'#'
,
TEST_ATTRIB
);
else
okCHAR
(
hCon
,
c
,
CONTENT
(
c
),
DEFAULT_ATTRIB
);
}
}
else
{
/* Win9x will fail, Only accept ERROR_NOT_ENOUGH_MEMORY */
ok
(
GetLastError
()
==
ERROR_NOT_ENOUGH_MEMORY
,
"Expected ERROR_NOT_ENOUGH_MEMORY, got %u
\n
"
,
GetLastError
());
}
/* clipping, src & dst rect do overlap */
resetContent
(
hCon
,
sbSize
,
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