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
dd01d39f
Commit
dd01d39f
authored
Jun 24, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix return values of GetConsoleCursorInfo.
parent
296bbde1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
console.c
dlls/kernel32/console.c
+9
-1
console.c
dlls/kernel32/tests/console.c
+0
-3
No files found.
dlls/kernel32/console.c
View file @
dd01d39f
...
...
@@ -2239,7 +2239,15 @@ BOOL WINAPI GetConsoleCursorInfo(HANDLE hCon, LPCONSOLE_CURSOR_INFO cinfo)
}
SERVER_END_REQ
;
TRACE
(
"(%p) returning (%d,%d)
\n
"
,
hCon
,
cinfo
->
dwSize
,
cinfo
->
bVisible
);
if
(
!
ret
)
return
FALSE
;
if
(
!
cinfo
)
{
SetLastError
(
ERROR_INVALID_ACCESS
);
ret
=
FALSE
;
}
else
TRACE
(
"(%p) returning (%d,%d)
\n
"
,
hCon
,
cinfo
->
dwSize
,
cinfo
->
bVisible
);
return
ret
;
}
...
...
dlls/kernel32/tests/console.c
View file @
dd01d39f
...
...
@@ -168,12 +168,9 @@ static void testCursorInfo(HANDLE hCon)
SetLastError
(
0xdeadbeef
);
ret
=
GetConsoleCursorInfo
(
hCon
,
NULL
);
todo_wine
{
ok
(
!
ret
,
"Expected failure
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_ACCESS
,
"GetLastError: expecting %u got %u
\n
"
,
ERROR_INVALID_ACCESS
,
GetLastError
());
}
}
static
void
testWriteSimple
(
HANDLE
hCon
,
COORD
sbSize
)
...
...
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