From 59ac08a7f556b7c5d520dba1f3625c1233cc43b5 Mon Sep 17 00:00:00 2001 From: bossiel Date: Sun, 31 May 2015 06:28:50 +0000 Subject: [PATCH] Fix calling convention for "typedef DirectDrawCreate" to avoid "Run-Time Check Failure #0" issue --- .../src/video/directx/tdav_producer_screencast_ddraw.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/branches/2.0/doubango/tinyDAV/src/video/directx/tdav_producer_screencast_ddraw.cxx b/branches/2.0/doubango/tinyDAV/src/video/directx/tdav_producer_screencast_ddraw.cxx index b22e5496..b7f8d29f 100644 --- a/branches/2.0/doubango/tinyDAV/src/video/directx/tdav_producer_screencast_ddraw.cxx +++ b/branches/2.0/doubango/tinyDAV/src/video/directx/tdav_producer_screencast_ddraw.cxx @@ -503,7 +503,7 @@ bail: static HRESULT _tdav_producer_screencast_create_module(LPDDrawModule lpModule) { - typedef HRESULT(*pDirectDrawCreateFunc)(_In_ GUID FAR *lpGUID, + typedef HRESULT (WINAPI *pDirectDrawCreateFunc)(_In_ GUID FAR *lpGUID, _Out_ LPDIRECTDRAW FAR *lplpDD, _In_ IUnknown FAR *pUnkOuter); HRESULT hr = S_OK;