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
5163752e
Commit
5163752e
authored
Nov 21, 2002
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle the COORD <-> DWORD conversion the canonical way.
parent
24677dd4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
console.c
dlls/kernel/console.c
+7
-4
wincon.h
include/wincon.h
+6
-6
No files found.
dlls/kernel/console.c
View file @
5163752e
...
...
@@ -796,10 +796,13 @@ DWORD WINAPI GetConsoleTitleW(LPWSTR title, DWORD size)
#undef GetLargestConsoleWindowSize
DWORD
WINAPI
GetLargestConsoleWindowSize
(
HANDLE
hConsoleOutput
)
{
COORD
c
;
c
.
X
=
80
;
c
.
Y
=
24
;
return
*
(
DWORD
*
)
&
c
;
union
{
COORD
c
;
DWORD
w
;
}
x
;
x
.
c
.
X
=
80
;
x
.
c
.
Y
=
24
;
return
x
.
w
;
}
#endif
/* defined(__i386__) */
...
...
include/wincon.h
View file @
5163752e
...
...
@@ -180,12 +180,12 @@ DWORD WINAPI GetLargestConsoleWindowSize(HANDLE);
inline
static
COORD
__wine_GetLargestConsoleWindowSize_wrapper
(
HANDLE
h
)
{
COORD
c
;
DWORD
dw
=
GetLargestConsoleWindowSize
(
h
)
;
c
.
X
=
LOWORD
(
dw
)
;
c
.
Y
=
HIWORD
(
dw
);
return
c
;
union
{
COORD
c
;
DWORD
dw
;
}
u
;
u
.
dw
=
GetLargestConsoleWindowSize
(
h
);
return
u
.
c
;
}
#define GetLargestConsoleWindowSize(h) __wine_GetLargestConsoleWindowSize_wrapper(h)
...
...
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