Function without a return (warning)
authorMartin Poirier <theeth@yahoo.com>
Sun, 28 Dec 2003 20:24:32 +0000 (20:24 +0000)
committerMartin Poirier <theeth@yahoo.com>
Sun, 28 Dec 2003 20:24:32 +0000 (20:24 +0000)
This function just calls another function which returns a success value, so I'm just passing that value directly as a return value.

Slap me with a trout if I wasn't suppose to fix this.

intern/ghost/intern/GHOST_WindowWin32.cpp

index dcf02611d1aad1c7e837589fa271e3b47f222fb3..b0974a24f8905fcfd69f5b43f7afc6600238250f 100644 (file)
@@ -581,9 +581,8 @@ static GHOST_TUns16 uns16ReverseBits(GHOST_TUns16 shrt)
 GHOST_TSuccess GHOST_WindowWin32::setWindowCustomCursorShape(GHOST_TUns8 bitmap[16][2], 
                                        GHOST_TUns8 mask[16][2], int hotX, int hotY)
 {
-       setWindowCustomCursorShape((GHOST_TUns8*)bitmap, (GHOST_TUns8*)mask, 
+       return setWindowCustomCursorShape((GHOST_TUns8*)bitmap, (GHOST_TUns8*)mask, 
                                                                        16, 16, hotX, hotY, 0, 1);
-
 }
 
 GHOST_TSuccess GHOST_WindowWin32::setWindowCustomCursorShape(GHOST_TUns8 *bitmap,