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
f139b066
Commit
f139b066
authored
Feb 10, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Store all 64 bits of window id.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6366694d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
21 deletions
+17
-21
win.c
dlls/user32/win.c
+1
-1
server_protocol.h
include/wine/server_protocol.h
+5
-6
protocol.def
server/protocol.def
+3
-4
request.h
server/request.h
+3
-4
trace.c
server/trace.c
+3
-4
window.c
server/window.c
+2
-2
No files found.
dlls/user32/win.c
View file @
f139b066
...
...
@@ -2715,7 +2715,7 @@ LONG_PTR WIN_SetWindowLong( HWND hwnd, INT offset, UINT size, LONG_PTR newval, B
break
;
case
GWLP_ID
:
req
->
flags
=
SET_WIN_ID
;
req
->
id
=
newval
;
req
->
extra_value
=
newval
;
break
;
case
GWLP_HINSTANCE
:
req
->
flags
=
SET_WIN_INSTANCE
;
...
...
include/wine/server_protocol.h
View file @
f139b066
...
...
@@ -3112,12 +3112,12 @@ struct set_window_info_request
user_handle_t
handle
;
unsigned
int
style
;
unsigned
int
ex_style
;
unsigned
int
id
;
data_size_t
extra_size
;
mod_handle_t
instance
;
lparam_t
user_data
;
int
extra_offset
;
data_size_t
extra_size
;
lparam_t
extra_value
;
int
extra_offset
;
char
__pad_60
[
4
];
};
struct
set_window_info_reply
{
...
...
@@ -3127,8 +3127,7 @@ struct set_window_info_reply
mod_handle_t
old_instance
;
lparam_t
old_user_data
;
lparam_t
old_extra_value
;
unsigned
int
old_id
;
char
__pad_44
[
4
];
lparam_t
old_id
;
};
#define SET_WIN_STYLE 0x01
#define SET_WIN_EXSTYLE 0x02
...
...
@@ -6263,7 +6262,7 @@ union generic_reply
/* ### protocol_version begin ### */
#define SERVER_PROTOCOL_VERSION 74
2
#define SERVER_PROTOCOL_VERSION 74
3
/* ### protocol_version end ### */
...
...
server/protocol.def
View file @
f139b066
...
...
@@ -2303,19 +2303,18 @@ enum message_type
user_handle_t handle; /* handle to the window */
unsigned int style; /* window style */
unsigned int ex_style; /* window extended style */
unsigned int id; /* window id
*/
data_size_t extra_size; /* size to set in extra bytes
*/
mod_handle_t instance; /* creator instance */
lparam_t user_data; /* user-specific data */
lparam_t extra_value; /* value to set in extra bytes or window id */
int extra_offset; /* offset to set in extra bytes */
data_size_t extra_size; /* size to set in extra bytes */
lparam_t extra_value; /* value to set in extra bytes */
@REPLY
unsigned int old_style; /* old window style */
unsigned int old_ex_style; /* old window extended style */
mod_handle_t old_instance; /* old creator instance */
lparam_t old_user_data; /* old user-specific data */
lparam_t old_extra_value; /* old value in extra bytes */
unsigned int
old_id; /* old window id */
lparam_t
old_id; /* old window id */
@END
#define SET_WIN_STYLE 0x01
#define SET_WIN_EXSTYLE 0x02
...
...
server/request.h
View file @
f139b066
...
...
@@ -1479,12 +1479,11 @@ C_ASSERT( FIELD_OFFSET(struct set_window_info_request, is_unicode) == 14 );
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_request
,
handle
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_request
,
style
)
==
20
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_request
,
ex_style
)
==
24
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_request
,
id
)
==
28
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_request
,
extra_size
)
==
28
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_request
,
instance
)
==
32
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_request
,
user_data
)
==
40
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_request
,
extra_offset
)
==
48
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_request
,
extra_size
)
==
52
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_request
,
extra_value
)
==
56
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_request
,
extra_value
)
==
48
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_request
,
extra_offset
)
==
56
);
C_ASSERT
(
sizeof
(
struct
set_window_info_request
)
==
64
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_reply
,
old_style
)
==
8
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_window_info_reply
,
old_ex_style
)
==
12
);
...
...
server/trace.c
View file @
f139b066
...
...
@@ -2907,12 +2907,11 @@ static void dump_set_window_info_request( const struct set_window_info_request *
fprintf
(
stderr
,
", handle=%08x"
,
req
->
handle
);
fprintf
(
stderr
,
", style=%08x"
,
req
->
style
);
fprintf
(
stderr
,
", ex_style=%08x"
,
req
->
ex_style
);
fprintf
(
stderr
,
",
id=%08x"
,
req
->
id
);
fprintf
(
stderr
,
",
extra_size=%u"
,
req
->
extra_size
);
dump_uint64
(
", instance="
,
&
req
->
instance
);
dump_uint64
(
", user_data="
,
&
req
->
user_data
);
fprintf
(
stderr
,
", extra_offset=%d"
,
req
->
extra_offset
);
fprintf
(
stderr
,
", extra_size=%u"
,
req
->
extra_size
);
dump_uint64
(
", extra_value="
,
&
req
->
extra_value
);
fprintf
(
stderr
,
", extra_offset=%d"
,
req
->
extra_offset
);
}
static
void
dump_set_window_info_reply
(
const
struct
set_window_info_reply
*
req
)
...
...
@@ -2922,7 +2921,7 @@ static void dump_set_window_info_reply( const struct set_window_info_reply *req
dump_uint64
(
", old_instance="
,
&
req
->
old_instance
);
dump_uint64
(
", old_user_data="
,
&
req
->
old_user_data
);
dump_uint64
(
", old_extra_value="
,
&
req
->
old_extra_value
);
fprintf
(
stderr
,
", old_id=%08x"
,
req
->
old_id
);
dump_uint64
(
", old_id="
,
&
req
->
old_id
);
}
static
void
dump_set_parent_request
(
const
struct
set_parent_request
*
req
)
...
...
server/window.c
View file @
f139b066
...
...
@@ -74,7 +74,7 @@ struct window
struct
region
*
update_region
;
/* update region (relative to window rect) */
unsigned
int
style
;
/* window style */
unsigned
int
ex_style
;
/* window extended style */
unsigned
int
id
;
/* window id */
lparam_t
id
;
/* window id */
mod_handle_t
instance
;
/* creator instance */
unsigned
int
is_unicode
:
1
;
/* ANSI or unicode */
unsigned
int
is_linked
:
1
;
/* is it linked into the parent z-order list? */
...
...
@@ -2245,7 +2245,7 @@ DECL_HANDLER(set_window_info)
else
win
->
ex_style
=
(
req
->
ex_style
&
~
WS_EX_TOPMOST
)
|
(
win
->
ex_style
&
WS_EX_TOPMOST
);
if
(
!
(
win
->
ex_style
&
WS_EX_LAYERED
))
win
->
is_layered
=
0
;
}
if
(
req
->
flags
&
SET_WIN_ID
)
win
->
id
=
req
->
id
;
if
(
req
->
flags
&
SET_WIN_ID
)
win
->
id
=
req
->
extra_value
;
if
(
req
->
flags
&
SET_WIN_INSTANCE
)
win
->
instance
=
req
->
instance
;
if
(
req
->
flags
&
SET_WIN_UNICODE
)
win
->
is_unicode
=
req
->
is_unicode
;
if
(
req
->
flags
&
SET_WIN_USERDATA
)
win
->
user_data
=
req
->
user_data
;
...
...
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