comctl32/tests: Avoid uninitialized variable warning in GetWidthBytes().

Gerald Pfeifer gerald at pfeifer.com
Sat Feb 12 17:43:30 CST 2011


---
 dlls/comctl32/tests/imagelist.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/tests/imagelist.c b/dlls/comctl32/tests/imagelist.c
index 28b21a4..cc98a17 100644
--- a/dlls/comctl32/tests/imagelist.c
+++ b/dlls/comctl32/tests/imagelist.c
@@ -753,7 +753,7 @@ static INT DIB_GetWidthBytes( int width, int bpp )
         default:
             trace("Unknown depth %d, please report.\n", bpp );
             assert(0);
-            break;
+            return -1;
     }
     return 4 * words;
 }
-- 
1.7.2.2



More information about the wine-patches mailing list