[PATCH 1/3] mciavi32: Trace MCIAVI_CreateWindow

Andrew Eikum aeikum at codeweavers.com
Mon Mar 6 08:21:06 CST 2017


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>

On Mon, Mar 06, 2017 at 01:24:26AM -0300, Bruno Jesus wrote:
> From: Bruno Jesus <bjesus at codeweavers.com>
> 
> Also normalize the parms parameter name like other functions
> 
> Signed-off-by: Bruno Jesus <bjesus at codeweavers.com>
> ---
>  dlls/mciavi32/wnd.c | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/dlls/mciavi32/wnd.c b/dlls/mciavi32/wnd.c
> index 66c7565..c9da9ec 100644
> --- a/dlls/mciavi32/wnd.c
> +++ b/dlls/mciavi32/wnd.c
> @@ -109,7 +109,7 @@ BOOL MCIAVI_RegisterClass(void)
>      return FALSE;
>  }
>  
> -BOOL    MCIAVI_CreateWindow(WINE_MCIAVI* wma, DWORD dwFlags, LPMCI_DGV_OPEN_PARMSW lpOpenParms)
> +BOOL    MCIAVI_CreateWindow(WINE_MCIAVI* wma, DWORD dwFlags, LPMCI_DGV_OPEN_PARMSW lpParms)
>  {
>      static const WCHAR captionW[] = {'W','i','n','e',' ','M','C','I','-','A','V','I',' ','p','l','a','y','e','r',0};
>      HWND	hParent = 0;
> @@ -119,8 +119,8 @@ BOOL    MCIAVI_CreateWindow(WINE_MCIAVI* wma, DWORD dwFlags, LPMCI_DGV_OPEN_PARM
>      /* what should be done ? */
>      if (wma->hWnd) return TRUE;
>  
> -    if (dwFlags & MCI_DGV_OPEN_PARENT)	hParent = lpOpenParms->hWndParent;
> -    if (dwFlags & MCI_DGV_OPEN_WS)	dwStyle = lpOpenParms->dwStyle;
> +    if (dwFlags & MCI_DGV_OPEN_PARENT)	hParent = lpParms->hWndParent;
> +    if (dwFlags & MCI_DGV_OPEN_WS)	dwStyle = lpParms->dwStyle;
>  
>      if (wma->hic)
>          SetRect(&rc, 0, 0, wma->outbih->biWidth, wma->outbih->biHeight);
> @@ -141,6 +141,9 @@ BOOL    MCIAVI_CreateWindow(WINE_MCIAVI* wma, DWORD dwFlags, LPMCI_DGV_OPEN_PARM
>                                hParent, 0, MCIAVI_hInstance,
>                                ULongToPtr(wma->wDevID));
>      wma->hWndPaint = wma->hWnd;
> +
> +    TRACE("(%04x, %08X, %p, style %x, parent %p, dimensions %dx%d, hwnd %p)\n", wma->wDevID,
> +          dwFlags, lpParms, dwStyle, hParent, rc.right - rc.left, rc.bottom - rc.top, wma->hWnd);
>      return wma->hWnd != 0;
>  }
>  
> -- 
> 2.9.3
> 
> 
> 



More information about the wine-patches mailing list