[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-video-dev
Subject:    Re: [Video-dev] CR - Fixed function pointer prototype mismatch
From:       Greg Wright <gwright () real ! com>
Date:       2006-10-04 20:55:43
Message-ID: 45241FCF.3090603 () real ! com
[Download RAW message or body]

Looks good.
--greg.


Jeff Leitner wrote:
> Modified by: jeffl@real.com
> Reviewed by:
> Date: 10/04/2006
> Project: Video
> 
> Synopsis:
> The incorrect calling convention is being used
> 
> Overview:
> The function prototype doesn't match the calling convention of the 
> function being called.
> 
> This code has been tested and built on Windows.
> 
> Files Modified:
> video\sitelib\platform\win\windraw2.cpp
> 
> Image Size and Heap Use impact:
> N/A
> 
> Platforms and Profiles Affected:
> All
> 
> Platforms and Profiles Build Verified:
> Windows, helix-client-all-defines
> 
> Platforms and Profiles Functionality verified:
> Windows, helix-client-all-defines
> 
> Branch:
> HEAD
> hxclient_1_5_0_cayenne
> 
> Index: platform/win/windraw2.cpp
> ===================================================================
> RCS file: /cvsroot/video/sitelib/platform/win/windraw2.cpp,v
> retrieving revision 1.23.4.4
> diff -u -w -r1.23.4.4 windraw2.cpp
> --- platform/win/windraw2.cpp    15 Mar 2006 22:09:23 -0000    1.23.4.4
> +++ platform/win/windraw2.cpp    4 Oct 2006 20:42:33 -0000
> @@ -191,8 +191,8 @@
>  #endif
> 
> 
> -typedef HRESULT (*PDRAWCREATE) (IID *,LPDIRECTDRAW *, LPUNKNOWN);
> -typedef HRESULT (*PDRAWENUM) (LPDDENUMCALLBACKA, LPVOID);
> +typedef HRESULT (WINAPI* PDRAWCREATE) (IID *,LPDIRECTDRAW *, LPUNKNOWN);
> +typedef HRESULT (WINAPI* PDRAWENUM) (LPDDENUMCALLBACKA, LPVOID);
> 
>  /*
>   * FindDeviceCallback functions:
> @@ -207,7 +207,7 @@
>  } FINDDEVICEDATA;
> 
> 
> -static BOOL CALLBACK FindDeviceCallback (GUID* lpGUID, LPSTR lpszName,
> +static BOOL WINAPI FindDeviceCallback (GUID* lpGUID, LPSTR lpszName,
>                                           LPSTR lpszDevice, LPVOID lParam)
>  {
>      FINDDEVICEDATA *p = (FINDDEVICEDATA*) lParam;
> 
> 
> _______________________________________________
> Video-dev mailing list
> Video-dev@helixcommunity.org
> http://lists.helixcommunity.org/mailman/listinfo/video-dev
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic