comctl32: Fix possible use of uninitialised variable in REBAR_Paint.
commitf3c40f925d39517a7068ce0c3d5231310f5f53d5
authorRob Shearman <rob@codeweavers.com>
Mon, 25 Feb 2008 08:59:51 +0000 (25 08:59 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 25 Feb 2008 12:29:34 +0000 (25 13:29 +0100)
tree1fa101ee646eb646c29554ce1bb932e721393e62
parent4e0100ff06ab27758947c17cd8480f81e42d1a70
comctl32: Fix possible use of uninitialised variable in REBAR_Paint.

In the case where an hdc is passed in via the wParam, ps.fErase could be
uninitialised. Fix this by rearranging the code so that ps is only used
when an hdc isn't passed in.
dlls/comctl32/rebar.c