Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Joan Roque-Worcel
wine
Commits
af04ebe4
Commit
af04ebe4
authored
25 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Added server_call_noerr function that avoids touching the last error.
parent
d92870fd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/server.h
+11
-3
11 additions, 3 deletions
include/server.h
scheduler/client.c
+3
-7
3 additions, 7 deletions
scheduler/client.c
with
14 additions
and
10 deletions
include/server.h
+
11
−
3
View file @
af04ebe4
...
...
@@ -922,6 +922,10 @@ enum request
/* client communication functions */
extern
unsigned
int
server_call_noerr
(
enum
request
req
);
extern
unsigned
int
server_call_fd
(
enum
request
req
,
int
fd_out
,
int
*
fd_in
);
extern
void
server_protocol_error
(
const
char
*
err
,
...
);
/* get a pointer to the request buffer */
static
inline
void
*
WINE_UNUSED
get_req_buffer
(
void
)
{
...
...
@@ -934,9 +938,13 @@ static inline int WINE_UNUSED server_remaining( const void *ptr )
return
(
char
*
)
NtCurrentTeb
()
->
buffer
+
NtCurrentTeb
()
->
buffer_size
-
(
char
*
)
ptr
;
}
extern
unsigned
int
server_call
(
enum
request
req
);
extern
unsigned
int
server_call_fd
(
enum
request
req
,
int
fd_out
,
int
*
fd_in
);
extern
void
server_protocol_error
(
const
char
*
err
,
...
);
/* do a server call and set the last error code */
static
inline
int
server_call
(
enum
request
req
)
{
unsigned
int
res
=
server_call_noerr
(
req
);
if
(
res
)
SetLastError
(
res
);
return
res
;
}
extern
int
CLIENT_InitServer
(
void
);
extern
int
CLIENT_SetDebug
(
int
level
);
...
...
This diff is collapsed.
Click to expand it.
scheduler/client.c
+
3
−
7
View file @
af04ebe4
...
...
@@ -225,18 +225,14 @@ static unsigned int wait_reply_fd( int *fd )
/***********************************************************************
* server_call
* server_call
_noerr
*
* Perform a server call.
*/
unsigned
int
server_call
(
enum
request
req
)
unsigned
int
server_call
_noerr
(
enum
request
req
)
{
unsigned
int
res
;
send_request
(
req
);
res
=
wait_reply
();
if
(
res
)
SetLastError
(
res
);
return
res
;
/* error code */
return
wait_reply
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment