Alexandre Julliard : wineconsole: Replace a couple of handle casts by the appropriate server function.

Alexandre Julliard julliard at winehq.org
Fri Jan 9 09:52:09 CST 2009


Module: wine
Branch: master
Commit: 014e2db49597068a94f81484763e0b694a639283
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=014e2db49597068a94f81484763e0b694a639283

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jan  8 17:33:07 2009 +0100

wineconsole: Replace a couple of handle casts by the appropriate server function.

---

 programs/wineconsole/wineconsole.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c
index 7d10783..3626383 100644
--- a/programs/wineconsole/wineconsole.c
+++ b/programs/wineconsole/wineconsole.c
@@ -301,7 +301,7 @@ int	WINECON_GrabChanges(struct inner_data* data)
                 req->access     = GENERIC_READ | GENERIC_WRITE;
                 req->attributes = 0;
                 req->share      = FILE_SHARE_READ | FILE_SHARE_WRITE;
-		h = wine_server_call_err( req ) ? 0 : (HANDLE)reply->handle;
+                h = wine_server_call_err( req ) ? 0 : wine_server_ptr_handle(reply->handle);
 	    }
 	    SERVER_END_REQ;
 	    WINE_TRACE(" active(%p)", h);
@@ -635,8 +635,8 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
         req->pid        = pid;
 
         ret = !wine_server_call_err( req );
-        data->hConIn = (HANDLE)reply->handle_in;
-	data->hSynchro = (HANDLE)reply->event;
+        data->hConIn = wine_server_ptr_handle( reply->handle_in );
+        data->hSynchro = wine_server_ptr_handle( reply->event );
     }
     SERVER_END_REQ;
     if (!ret) goto error;
@@ -649,7 +649,7 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
         req->attributes = 0;
         req->share      = FILE_SHARE_READ|FILE_SHARE_WRITE;
         ret = !wine_server_call_err( req );
-        data->hConOut  = (HANDLE)reply->handle_out;
+        data->hConOut   = wine_server_ptr_handle( reply->handle_out );
     }
     SERVER_END_REQ;
     if (!ret) goto error;




More information about the wine-cvs mailing list