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
620305d9
Commit
620305d9
authored
Feb 04, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conhost: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
abbde22d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
Makefile.in
programs/conhost/Makefile.in
+0
-1
conhost.c
programs/conhost/conhost.c
+9
-9
window.c
programs/conhost/window.c
+5
-5
No files found.
programs/conhost/Makefile.in
View file @
620305d9
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
conhost.exe
IMPORTS
=
user32 gdi32 advapi32
DELAYIMPORTS
=
comctl32
...
...
programs/conhost/conhost.c
View file @
620305d9
...
...
@@ -162,7 +162,7 @@ static void tty_flush( struct console *console )
TRACE
(
"%s
\n
"
,
debugstr_an
(
console
->
tty_buffer
,
console
->
tty_buffer_count
));
if
(
!
WriteFile
(
console
->
tty_output
,
console
->
tty_buffer
,
console
->
tty_buffer_count
,
NULL
,
NULL
))
WARN
(
"write failed: %u
\n
"
,
GetLastError
()
);
WARN
(
"write failed: %
l
u
\n
"
,
GetLastError
()
);
console
->
tty_buffer_count
=
0
;
}
...
...
@@ -180,7 +180,7 @@ static void tty_write( struct console *console, const char *buffer, size_t size
{
assert
(
!
console
->
tty_buffer_count
);
if
(
!
WriteFile
(
console
->
tty_output
,
buffer
,
size
,
NULL
,
NULL
))
WARN
(
"write failed: %u
\n
"
,
GetLastError
()
);
WARN
(
"write failed: %
l
u
\n
"
,
GetLastError
()
);
}
}
...
...
@@ -461,7 +461,7 @@ static NTSTATUS read_complete( struct console *console, NTSTATUS status, const v
status
=
wine_server_call
(
req
);
}
SERVER_END_REQ
;
if
(
status
&&
(
console
->
read_ioctl
||
status
!=
STATUS_INVALID_HANDLE
))
ERR
(
"failed: %#x
\n
"
,
status
);
if
(
status
&&
(
console
->
read_ioctl
||
status
!=
STATUS_INVALID_HANDLE
))
ERR
(
"failed: %#
l
x
\n
"
,
status
);
console
->
signaled
=
signal
;
console
->
read_ioctl
=
0
;
console
->
pending_read
=
0
;
...
...
@@ -472,7 +472,7 @@ static NTSTATUS read_console_input( struct console *console, size_t out_size )
{
size_t
count
=
min
(
out_size
/
sizeof
(
INPUT_RECORD
),
console
->
record_count
);
TRACE
(
"count %u
\n
"
,
count
);
TRACE
(
"count %
I
u
\n
"
,
count
);
read_complete
(
console
,
STATUS_SUCCESS
,
console
->
records
,
count
*
sizeof
(
*
console
->
records
),
console
->
record_count
>
count
);
...
...
@@ -1271,7 +1271,7 @@ static NTSTATUS process_console_input( struct console *console )
if
(
ir
.
EventType
!=
KEY_EVENT
||
!
ir
.
Event
.
KeyEvent
.
bKeyDown
)
continue
;
TRACE
(
"key code=%02x scan=%02x char=%02x state=%08x
\n
"
,
TRACE
(
"key code=%02x scan=%02x char=%02x state=%08
l
x
\n
"
,
ir
.
Event
.
KeyEvent
.
wVirtualKeyCode
,
ir
.
Event
.
KeyEvent
.
wVirtualScanCode
,
ir
.
Event
.
KeyEvent
.
uChar
.
UnicodeChar
,
ir
.
Event
.
KeyEvent
.
dwControlKeyState
);
...
...
@@ -1638,7 +1638,7 @@ static DWORD WINAPI tty_input( void *param )
unsigned
int
h
=
condrv_handle
(
console
->
tty_input
);
status
=
NtDeviceIoControlFile
(
console
->
server
,
NULL
,
NULL
,
NULL
,
&
io
,
IOCTL_CONDRV_SETUP_INPUT
,
&
h
,
sizeof
(
h
),
NULL
,
0
);
if
(
status
)
ERR
(
"input setup failed: %#x
\n
"
,
status
);
if
(
status
)
ERR
(
"input setup failed: %#
l
x
\n
"
,
status
);
}
event
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
...
...
@@ -1695,7 +1695,7 @@ static DWORD WINAPI tty_input( void *param )
LeaveCriticalSection
(
&
console_section
);
}
TRACE
(
"NtReadFile failed: %#x
\n
"
,
status
);
TRACE
(
"NtReadFile failed: %#
l
x
\n
"
,
status
);
done:
EnterCriticalSection
(
&
console_section
);
...
...
@@ -1705,7 +1705,7 @@ done:
unsigned
int
h
=
0
;
status
=
NtDeviceIoControlFile
(
console
->
server
,
NULL
,
NULL
,
NULL
,
&
io
,
IOCTL_CONDRV_SETUP_INPUT
,
&
h
,
sizeof
(
h
),
NULL
,
0
);
if
(
status
)
ERR
(
"input restore failed: %#x
\n
"
,
status
);
if
(
status
)
ERR
(
"input restore failed: %#
l
x
\n
"
,
status
);
}
CloseHandle
(
console
->
input_thread
);
console
->
input_thread
=
NULL
;
...
...
@@ -2632,7 +2632,7 @@ static NTSTATUS process_console_ioctls( struct console *console )
}
if
(
status
)
{
TRACE
(
"failed to get next request: %#x
\n
"
,
status
);
TRACE
(
"failed to get next request: %#
l
x
\n
"
,
status
);
return
status
;
}
...
...
programs/conhost/window.c
View file @
620305d9
...
...
@@ -110,8 +110,8 @@ static const char *debugstr_config( const struct console_config *config )
static
const
char
*
debugstr_logfont
(
const
LOGFONTW
*
lf
,
unsigned
int
ft
)
{
return
wine_dbg_sprintf
(
"%s%s%s%s lfHeight=%
d lfWidth=%d lfEscapement=%
d "
"lfOrientation=%
d lfWeight=%
d lfItalic=%u lfUnderline=%u "
return
wine_dbg_sprintf
(
"%s%s%s%s lfHeight=%
ld lfWidth=%ld lfEscapement=%l
d "
"lfOrientation=%
ld lfWeight=%l
d lfItalic=%u lfUnderline=%u "
"lfStrikeOut=%u lfCharSet=%u lfPitchAndFamily=%u lfFaceName=%s"
,
(
ft
&
RASTER_FONTTYPE
)
?
"raster"
:
""
,
(
ft
&
TRUETYPE_FONTTYPE
)
?
"truetype"
:
""
,
...
...
@@ -124,8 +124,8 @@ static const char *debugstr_logfont( const LOGFONTW *lf, unsigned int ft )
static
const
char
*
debugstr_textmetric
(
const
TEXTMETRICW
*
tm
,
unsigned
int
ft
)
{
return
wine_dbg_sprintf
(
"%s%s%s%s tmHeight=%
d tmAscent=%d tmDescent=%
d "
"tmAveCharWidth=%
d tmMaxCharWidth=%d tmWeight=%
d "
return
wine_dbg_sprintf
(
"%s%s%s%s tmHeight=%
ld tmAscent=%ld tmDescent=%l
d "
"tmAveCharWidth=%
ld tmMaxCharWidth=%ld tmWeight=%l
d "
"tmPitchAndFamily=%u tmCharSet=%u"
,
(
ft
&
RASTER_FONTTYPE
)
?
"raster"
:
""
,
(
ft
&
TRUETYPE_FONTTYPE
)
?
"truetype"
:
""
,
...
...
@@ -2453,7 +2453,7 @@ static LRESULT WINAPI window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lp
break
;
case
IDS_SCROLL
:
case
IDS_SEARCH
:
FIXME
(
"Unhandled yet command: %
l
x
\n
"
,
wparam
);
FIXME
(
"Unhandled yet command: %
I
x
\n
"
,
wparam
);
break
;
default:
return
DefWindowProcW
(
hwnd
,
msg
,
wparam
,
lparam
);
...
...
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