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
2c54b344
Commit
2c54b344
authored
Dec 09, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Remove some unnecessary typecasts.
parent
7b910f40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
wineconsole.c
programs/wineconsole/wineconsole.c
+10
-10
No files found.
programs/wineconsole/wineconsole.c
View file @
2c54b344
...
...
@@ -45,7 +45,7 @@ void WINECON_FetchCells(struct inner_data* data, int upd_tp, int upd_bm)
{
SERVER_START_REQ
(
read_console_output
)
{
req
->
handle
=
(
obj_handle_t
)
data
->
hConOut
;
req
->
handle
=
data
->
hConOut
;
req
->
x
=
0
;
req
->
y
=
upd_tp
;
req
->
mode
=
CHAR_INFO_MODE_TEXTATTR
;
...
...
@@ -67,7 +67,7 @@ void WINECON_NotifyWindowChange(struct inner_data* data)
{
SERVER_START_REQ
(
set_console_output_info
)
{
req
->
handle
=
(
obj_handle_t
)
data
->
hConOut
;
req
->
handle
=
data
->
hConOut
;
req
->
win_left
=
data
->
curcfg
.
win_pos
.
X
;
req
->
win_top
=
data
->
curcfg
.
win_pos
.
Y
;
req
->
win_right
=
data
->
curcfg
.
win_pos
.
X
+
data
->
curcfg
.
win_width
-
1
;
...
...
@@ -89,7 +89,7 @@ int WINECON_GetHistorySize(HANDLE hConIn)
SERVER_START_REQ
(
get_console_input_info
)
{
req
->
handle
=
(
obj_handle_t
)
hConIn
;
req
->
handle
=
hConIn
;
if
(
!
wine_server_call_err
(
req
))
ret
=
reply
->
history_size
;
}
SERVER_END_REQ
;
...
...
@@ -107,7 +107,7 @@ BOOL WINECON_SetHistorySize(HANDLE hConIn, int size)
SERVER_START_REQ
(
set_console_input_info
)
{
req
->
handle
=
(
obj_handle_t
)
hConIn
;
req
->
handle
=
hConIn
;
req
->
mask
=
SET_CONSOLE_INPUT_INFO_HISTORY_SIZE
;
req
->
history_size
=
size
;
ret
=
!
wine_server_call_err
(
req
);
...
...
@@ -128,7 +128,7 @@ int WINECON_GetHistoryMode(HANDLE hConIn)
SERVER_START_REQ
(
get_console_input_info
)
{
req
->
handle
=
(
obj_handle_t
)
hConIn
;
req
->
handle
=
hConIn
;
if
(
!
wine_server_call_err
(
req
))
ret
=
reply
->
history_mode
;
}
SERVER_END_REQ
;
...
...
@@ -146,7 +146,7 @@ BOOL WINECON_SetHistoryMode(HANDLE hConIn, int mode)
SERVER_START_REQ
(
set_console_input_info
)
{
req
->
handle
=
(
obj_handle_t
)
hConIn
;
req
->
handle
=
hConIn
;
req
->
mask
=
SET_CONSOLE_INPUT_INFO_HISTORY_MODE
;
req
->
history_mode
=
mode
;
ret
=
!
wine_server_call_err
(
req
);
...
...
@@ -168,7 +168,7 @@ BOOL WINECON_GetConsoleTitle(HANDLE hConIn, WCHAR* buffer, size_t len)
SERVER_START_REQ
(
get_console_input_info
)
{
req
->
handle
=
(
obj_handle_t
)
hConIn
;
req
->
handle
=
hConIn
;
wine_server_set_reply
(
req
,
buffer
,
len
-
sizeof
(
WCHAR
)
);
if
((
ret
=
!
wine_server_call_err
(
req
)))
{
...
...
@@ -191,7 +191,7 @@ static BOOL WINECON_SetEditionMode(HANDLE hConIn, int edition_mode)
SERVER_START_REQ
(
set_console_input_info
)
{
req
->
handle
=
(
obj_handle_t
)
hConIn
;
req
->
handle
=
hConIn
;
req
->
mask
=
SET_CONSOLE_INPUT_INFO_EDITION_MODE
;
req
->
edition_mode
=
edition_mode
;
ret
=
!
wine_server_call_err
(
req
);
...
...
@@ -214,7 +214,7 @@ int WINECON_GrabChanges(struct inner_data* data)
SERVER_START_REQ
(
get_console_renderer_events
)
{
wine_server_set_reply
(
req
,
evts
,
sizeof
(
evts
)
);
req
->
handle
=
(
obj_handle_t
)
data
->
hSynchro
;
req
->
handle
=
data
->
hSynchro
;
if
(
!
wine_server_call_err
(
req
))
num
=
wine_server_reply_size
(
reply
)
/
sizeof
(
evts
[
0
]);
else
num
=
0
;
}
...
...
@@ -621,7 +621,7 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
SERVER_START_REQ
(
set_console_input_info
)
{
req
->
handle
=
(
obj_handle_t
)
data
->
hConIn
;
req
->
handle
=
data
->
hConIn
;
req
->
mask
=
SET_CONSOLE_INPUT_INFO_TITLE
;
wine_server_add_data
(
req
,
appname
,
lstrlenW
(
appname
)
*
sizeof
(
WCHAR
)
);
ret
=
!
wine_server_call_err
(
req
);
...
...
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