Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
58f23264
Commit
58f23264
authored
Aug 28, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conhost: Fix some pointer cast warnings.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2b9a0550
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
conhost.c
programs/conhost/conhost.c
+3
-3
No files found.
programs/conhost/conhost.c
View file @
58f23264
...
@@ -115,7 +115,7 @@ static void *alloc_ioctl_buffer( size_t size )
...
@@ -115,7 +115,7 @@ static void *alloc_ioctl_buffer( size_t size )
static
int
screen_buffer_compare_id
(
const
void
*
key
,
const
struct
wine_rb_entry
*
entry
)
static
int
screen_buffer_compare_id
(
const
void
*
key
,
const
struct
wine_rb_entry
*
entry
)
{
{
struct
screen_buffer
*
screen_buffer
=
WINE_RB_ENTRY_VALUE
(
entry
,
struct
screen_buffer
,
entry
);
struct
screen_buffer
*
screen_buffer
=
WINE_RB_ENTRY_VALUE
(
entry
,
struct
screen_buffer
,
entry
);
return
(
unsigned
int
)
key
-
screen_buffer
->
id
;
return
PtrToLong
(
key
)
-
screen_buffer
->
id
;
}
}
static
struct
wine_rb_tree
screen_buffer_map
=
{
screen_buffer_compare_id
};
static
struct
wine_rb_tree
screen_buffer_map
=
{
screen_buffer_compare_id
};
...
@@ -165,7 +165,7 @@ static struct screen_buffer *create_screen_buffer( struct console *console, int
...
@@ -165,7 +165,7 @@ static struct screen_buffer *create_screen_buffer( struct console *console, int
memcpy
(
&
screen_buffer
->
data
[
i
*
screen_buffer
->
width
],
screen_buffer
->
data
,
memcpy
(
&
screen_buffer
->
data
[
i
*
screen_buffer
->
width
],
screen_buffer
->
data
,
screen_buffer
->
width
*
sizeof
(
char_info_t
)
);
screen_buffer
->
width
*
sizeof
(
char_info_t
)
);
if
(
wine_rb_put
(
&
screen_buffer_map
,
(
const
void
*
)
id
,
&
screen_buffer
->
entry
))
if
(
wine_rb_put
(
&
screen_buffer_map
,
LongToPtr
(
id
)
,
&
screen_buffer
->
entry
))
{
{
ERR
(
"id %x already exists
\n
"
,
id
);
ERR
(
"id %x already exists
\n
"
,
id
);
return
NULL
;
return
NULL
;
...
@@ -898,7 +898,7 @@ static NTSTATUS process_console_ioctls( struct console *console )
...
@@ -898,7 +898,7 @@ static NTSTATUS process_console_ioctls( struct console *console )
else
else
{
{
struct
wine_rb_entry
*
entry
;
struct
wine_rb_entry
*
entry
;
if
(
!
(
entry
=
wine_rb_get
(
&
screen_buffer_map
,
(
const
void
*
)
output
)))
if
(
!
(
entry
=
wine_rb_get
(
&
screen_buffer_map
,
LongToPtr
(
output
)
)))
{
{
ERR
(
"invalid screen buffer id %x
\n
"
,
output
);
ERR
(
"invalid screen buffer id %x
\n
"
,
output
);
status
=
STATUS_INVALID_HANDLE
;
status
=
STATUS_INVALID_HANDLE
;
...
...
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