comctl32: Fix a typo in comment

Huw Davies huw at codeweavers.com
Thu May 19 04:10:52 CDT 2016


On Thu, May 19, 2016 at 11:42:11AM +0300, Andrey Gusev wrote:
> diff --git a/dlls/comctl32/trackbar.c b/dlls/comctl32/trackbar.c
> index 8c99ad0..ba4cec3 100644
> --- a/dlls/comctl32/trackbar.c
> +++ b/dlls/comctl32/trackbar.c
> @@ -920,7 +920,7 @@ TRACKBAR_Refresh (TRACKBAR_INFO *infoPtr, HDC hdcDst)
>  
>      GetClientRect (infoPtr->hwndSelf, &rcClient);
>      
> -    /* try to render offscreen, if we fail, carrry onscreen */
> +    /* try to render offscreen, if we fail, carry onscreen */
>      hdc = CreateCompatibleDC(hdcDst);
>      if (hdc) {
>          hOffScreenBmp = CreateCompatibleBitmap(hdcDst, rcClient.right, rcClient.bottom);

Apart from the fact that this comment still doesn't make sense (it
should probably have an additional 'on'), I'm not sure why we have
this fallback in the first place.  If the dc or bitmap creation fails
then we've probably got bigger problems.  I'd suggest just returning
early in those cases (with the appropriate cleanup).

Huw.



More information about the wine-devel mailing list