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
f11d0a37
Commit
f11d0a37
authored
Dec 09, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use attributes instead of inherit flag in snapshot requests.
parent
7a096601
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
8 deletions
+7
-8
toolhelp.c
dlls/kernel/toolhelp.c
+1
-2
nt.c
dlls/ntdll/nt.c
+1
-1
server_protocol.h
include/wine/server_protocol.h
+2
-2
protocol.def
server/protocol.def
+1
-1
snapshot.c
server/snapshot.c
+1
-1
trace.c
server/trace.c
+1
-1
No files found.
dlls/kernel/toolhelp.c
View file @
f11d0a37
...
@@ -61,8 +61,7 @@ HANDLE WINAPI CreateToolhelp32Snapshot( DWORD flags, DWORD process )
...
@@ -61,8 +61,7 @@ HANDLE WINAPI CreateToolhelp32Snapshot( DWORD flags, DWORD process )
if
(
flags
&
TH32CS_SNAPMODULE
)
req
->
flags
|=
SNAP_MODULE
;
if
(
flags
&
TH32CS_SNAPMODULE
)
req
->
flags
|=
SNAP_MODULE
;
if
(
flags
&
TH32CS_SNAPPROCESS
)
req
->
flags
|=
SNAP_PROCESS
;
if
(
flags
&
TH32CS_SNAPPROCESS
)
req
->
flags
|=
SNAP_PROCESS
;
if
(
flags
&
TH32CS_SNAPTHREAD
)
req
->
flags
|=
SNAP_THREAD
;
if
(
flags
&
TH32CS_SNAPTHREAD
)
req
->
flags
|=
SNAP_THREAD
;
req
->
attributes
=
(
flags
&
TH32CS_INHERIT
)
?
OBJ_INHERIT
:
0
;
req
->
inherit
=
(
flags
&
TH32CS_INHERIT
)
!=
0
;
req
->
pid
=
process
;
req
->
pid
=
process
;
wine_server_call_err
(
req
);
wine_server_call_err
(
req
);
ret
=
reply
->
handle
;
ret
=
reply
->
handle
;
...
...
dlls/ntdll/nt.c
View file @
f11d0a37
...
@@ -658,7 +658,7 @@ NTSTATUS WINAPI NtQuerySystemInformation(
...
@@ -658,7 +658,7 @@ NTSTATUS WINAPI NtQuerySystemInformation(
SERVER_START_REQ
(
create_snapshot
)
SERVER_START_REQ
(
create_snapshot
)
{
{
req
->
flags
=
SNAP_PROCESS
|
SNAP_THREAD
;
req
->
flags
=
SNAP_PROCESS
|
SNAP_THREAD
;
req
->
inherit
=
FALSE
;
req
->
attributes
=
0
;
req
->
pid
=
0
;
req
->
pid
=
0
;
if
(
!
(
ret
=
wine_server_call
(
req
)))
hSnap
=
reply
->
handle
;
if
(
!
(
ret
=
wine_server_call
(
req
)))
hSnap
=
reply
->
handle
;
}
}
...
...
include/wine/server_protocol.h
View file @
f11d0a37
...
@@ -1473,7 +1473,7 @@ struct get_mapping_info_reply
...
@@ -1473,7 +1473,7 @@ struct get_mapping_info_reply
struct
create_snapshot_request
struct
create_snapshot_request
{
{
struct
request_header
__header
;
struct
request_header
__header
;
int
inherit
;
unsigned
int
attributes
;
int
flags
;
int
flags
;
process_id_t
pid
;
process_id_t
pid
;
};
};
...
@@ -4316,6 +4316,6 @@ union generic_reply
...
@@ -4316,6 +4316,6 @@ union generic_reply
struct
query_symlink_reply
query_symlink_reply
;
struct
query_symlink_reply
query_symlink_reply
;
};
};
#define SERVER_PROTOCOL_VERSION 21
0
#define SERVER_PROTOCOL_VERSION 21
1
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/protocol.def
View file @
f11d0a37
...
@@ -1096,7 +1096,7 @@ enum char_info_mode
...
@@ -1096,7 +1096,7 @@ enum char_info_mode
#define SNAP_MODULE 0x00000008
#define SNAP_MODULE 0x00000008
/* Create a snapshot */
/* Create a snapshot */
@REQ(create_snapshot)
@REQ(create_snapshot)
int inherit; /* inherit flag
*/
unsigned int attributes; /* object attributes
*/
int flags; /* snapshot flags (SNAP_*) */
int flags; /* snapshot flags (SNAP_*) */
process_id_t pid; /* process id */
process_id_t pid; /* process id */
@REPLY
@REPLY
...
...
server/snapshot.c
View file @
f11d0a37
...
@@ -236,7 +236,7 @@ DECL_HANDLER(create_snapshot)
...
@@ -236,7 +236,7 @@ DECL_HANDLER(create_snapshot)
reply
->
handle
=
0
;
reply
->
handle
=
0
;
if
((
snapshot
=
create_snapshot
(
req
->
pid
,
req
->
flags
)))
if
((
snapshot
=
create_snapshot
(
req
->
pid
,
req
->
flags
)))
{
{
reply
->
handle
=
alloc_handle
(
current
->
process
,
snapshot
,
0
,
req
->
inherit
);
reply
->
handle
=
alloc_handle
(
current
->
process
,
snapshot
,
0
,
req
->
attributes
&
OBJ_INHERIT
);
release_object
(
snapshot
);
release_object
(
snapshot
);
}
}
}
}
...
...
server/trace.c
View file @
f11d0a37
...
@@ -1494,7 +1494,7 @@ static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *re
...
@@ -1494,7 +1494,7 @@ static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *re
static
void
dump_create_snapshot_request
(
const
struct
create_snapshot_request
*
req
)
static
void
dump_create_snapshot_request
(
const
struct
create_snapshot_request
*
req
)
{
{
fprintf
(
stderr
,
"
inherit=%d,"
,
req
->
inherit
);
fprintf
(
stderr
,
"
attributes=%08x,"
,
req
->
attributes
);
fprintf
(
stderr
,
" flags=%d,"
,
req
->
flags
);
fprintf
(
stderr
,
" flags=%d,"
,
req
->
flags
);
fprintf
(
stderr
,
" pid=%04x"
,
req
->
pid
);
fprintf
(
stderr
,
" pid=%04x"
,
req
->
pid
);
}
}
...
...
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