Removed obsolete get_req_buffer() function.

This commit is contained in:
Alexandre Julliard 2001-01-12 19:58:52 +00:00
parent eb3e38eb73
commit a5ed3b19eb
2 changed files with 2 additions and 14 deletions

View File

@ -1616,18 +1616,6 @@ extern const char *get_config_dir(void);
#define server_alloc_req(f,v) wine_server_alloc_req(f,v)
#define server_call_noerr(req) wine_server_call(req)
/* get a pointer to the request buffer */
static inline void WINE_UNUSED *get_req_buffer(void)
{
return NtCurrentTeb()->buffer;
}
/* maximum remaining size in the server buffer */
static inline int WINE_UNUSED server_remaining( const void *ptr )
{
return (char *)NtCurrentTeb()->buffer_info - (char *)ptr;
}
/* do a server call and set the last error code */
inline static unsigned int server_call( enum request req )
{

View File

@ -238,7 +238,7 @@ static void wait_reply(void)
*/
unsigned int wine_server_call( enum request req )
{
void *req_ptr = get_req_buffer();
void *req_ptr = NtCurrentTeb()->buffer;
send_request( req, req_ptr );
wait_reply();
return ((struct request_header *)req_ptr)->error;
@ -253,7 +253,7 @@ unsigned int wine_server_call( enum request req )
unsigned int server_call_fd( enum request req, int fd_out )
{
unsigned int res;
void *req_ptr = get_req_buffer();
void *req_ptr = NtCurrentTeb()->buffer;
send_request_fd( req, req_ptr, fd_out );
wait_reply();