server: Remove an unneeded cast.

Francois Gouget fgouget at free.fr
Mon Dec 1 04:10:06 CST 2008


---

Well, I guess the goal was to use the same style as the 
'(obj_handle_t)1' a few lines down but my script that checks for 
unneeded casts complained about it. I could make an exception though.


 server/console.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/console.c b/server/console.c
index b931e05..2ad686c 100644
--- a/server/console.c
+++ b/server/console.c
@@ -1380,7 +1380,7 @@ DECL_HANDLER(open_console)
     struct object      *obj = NULL;
 
     reply->handle = 0;
-    if (req->from == (obj_handle_t)0)
+    if (req->from == NULL)
     {
         if (current->process->console && current->process->console->renderer)
             obj = grab_object( (struct object*)current->process->console );
-- 
1.5.6.5




More information about the wine-patches mailing list