[PATCH] include: Allow making Wine Server requests from C++ code
Mahdi Tayarani
tayarani at google.com
Fri Jun 3 11:15:56 CDT 2022
Using SERVER_START_REQ/SERVER_END_REQ in C++ code calls helper methods
which need an explicit cast from a void* to __server_request_info*.
Signed-off-by: Mahdi Tayarani <tayarani at google.com>
---
include/wine/server.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/wine/server.h b/include/wine/server.h
index b05271b7522..477868c5854 100644
--- a/include/wine/server.h
+++ b/include/wine/server.h
@@ -70,7 +70,7 @@ static inline data_size_t wine_server_reply_size( const void *reply )
/* add some data to be sent along with the request */
static inline void wine_server_add_data( void *req_ptr, const void *ptr, data_size_t size )
{
- struct __server_request_info * const req = req_ptr;
+ struct __server_request_info * const req = (struct __server_request_info *)req_ptr;
if (size)
{
req->data[req->data_count].ptr = ptr;
@@ -82,7 +82,7 @@ static inline void wine_server_add_data( void *req_ptr, const void *ptr, data_si
/* set the pointer and max size for the reply var data */
static inline void wine_server_set_reply( void *req_ptr, void *ptr, data_size_t max_size )
{
- struct __server_request_info * const req = req_ptr;
+ struct __server_request_info * const req = (struct __server_request_info *)req_ptr;
req->reply_data = ptr;
req->u.req.request_header.reply_size = max_size;
}
--
2.36.1.255.ge46751e96f-goog
More information about the wine-devel
mailing list