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
77cf8034
Commit
77cf8034
authored
Dec 09, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Don't use size_t for module sizes, they are limited to 2Gb anyway.
parent
db6e4548
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
12 deletions
+11
-12
server_protocol.h
include/wine/server_protocol.h
+4
-4
process.h
server/process.h
+1
-1
protocol.def
server/protocol.def
+3
-3
trace.c
server/trace.c
+3
-3
make_requests
tools/make_requests
+0
-1
No files found.
include/wine/server_protocol.h
View file @
77cf8034
...
...
@@ -670,8 +670,8 @@ struct get_dll_info_request
struct
get_dll_info_reply
{
struct
reply_header
__header
;
size_t
size
;
void
*
entry_point
;
data_size_t
size
;
data_size_t
filename_len
;
/* VARARG(filename,unicode_str); */
};
...
...
@@ -709,10 +709,10 @@ struct load_dll_request
struct
request_header
__header
;
obj_handle_t
handle
;
void
*
base
;
size_t
size
;
void
*
name
;
data_size_t
size
;
int
dbg_offset
;
int
dbg_size
;
void
*
name
;
/* VARARG(filename,unicode_str); */
};
struct
load_dll_reply
...
...
@@ -5046,6 +5046,6 @@ union generic_reply
struct
set_window_layered_info_reply
set_window_layered_info_reply
;
};
#define SERVER_PROTOCOL_VERSION 34
8
#define SERVER_PROTOCOL_VERSION 34
9
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/process.h
View file @
77cf8034
...
...
@@ -38,8 +38,8 @@ struct process_dll
struct
list
entry
;
/* entry in per-process dll list */
struct
file
*
file
;
/* dll file */
void
*
base
;
/* dll base address (in process addr space) */
size_t
size
;
/* dll size */
void
*
name
;
/* ptr to ptr to name (in process addr space) */
data_size_t
size
;
/* dll size */
int
dbg_offset
;
/* debug info offset */
int
dbg_size
;
/* debug info size */
data_size_t
namelen
;
/* length of dll file name */
...
...
server/protocol.def
View file @
77cf8034
...
...
@@ -618,8 +618,8 @@ typedef union
obj_handle_t handle; /* process handle */
void* base_address; /* base address of module */
@REPLY
size_t size; /* module size */
void* entry_point;
data_size_t size; /* module size */
data_size_t filename_len; /* buffer len in bytes required to store filename */
VARARG(filename,unicode_str); /* file name of module */
@END
...
...
@@ -645,10 +645,10 @@ typedef union
@REQ(load_dll)
obj_handle_t handle; /* file handle */
void* base; /* base address */
size_t size; /* dll size */
void* name; /* ptr to ptr to name (in process addr space) */
data_size_t size; /* dll size */
int dbg_offset; /* debug info offset */
int dbg_size; /* debug info size */
void* name; /* ptr to ptr to name (in process addr space) */
VARARG(filename,unicode_str); /* file name of dll */
@END
...
...
server/trace.c
View file @
77cf8034
...
...
@@ -1014,8 +1014,8 @@ static void dump_get_dll_info_request( const struct get_dll_info_request *req )
static
void
dump_get_dll_info_reply
(
const
struct
get_dll_info_reply
*
req
)
{
fprintf
(
stderr
,
" size=%lu,"
,
(
unsigned
long
)
req
->
size
);
fprintf
(
stderr
,
" entry_point=%p,"
,
req
->
entry_point
);
fprintf
(
stderr
,
" size=%u,"
,
req
->
size
);
fprintf
(
stderr
,
" filename_len=%u,"
,
req
->
filename_len
);
fprintf
(
stderr
,
" filename="
);
dump_varargs_unicode_str
(
cur_size
);
...
...
@@ -1045,10 +1045,10 @@ static void dump_load_dll_request( const struct load_dll_request *req )
{
fprintf
(
stderr
,
" handle=%04x,"
,
req
->
handle
);
fprintf
(
stderr
,
" base=%p,"
,
req
->
base
);
fprintf
(
stderr
,
" size=%lu,"
,
(
unsigned
long
)
req
->
size
);
fprintf
(
stderr
,
" name=%p,"
,
req
->
name
);
fprintf
(
stderr
,
" size=%u,"
,
req
->
size
);
fprintf
(
stderr
,
" dbg_offset=%d,"
,
req
->
dbg_offset
);
fprintf
(
stderr
,
" dbg_size=%d,"
,
req
->
dbg_size
);
fprintf
(
stderr
,
" name=%p,"
,
req
->
name
);
fprintf
(
stderr
,
" filename="
);
dump_varargs_unicode_str
(
cur_size
);
}
...
...
tools/make_requests
View file @
77cf8034
...
...
@@ -31,7 +31,6 @@ my %formats =
"unsigned int"
=>
"%08x"
,
"unsigned long"
=>
"%lx"
,
"void*"
=>
"%p"
,
"size_t"
=>
"%lu (unsigned long)"
,
"data_size_t"
=>
"%u"
,
"obj_handle_t"
=>
"%04x"
,
"atom_t"
=>
"%04x"
,
...
...
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