From 2d4841beda4ae41e1f3b65311add802c96dffda3 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Wed, 31 Oct 2018 00:33:21 +0100 Subject: [PATCH] handle ddraw_surface_QueryInterface --- src/settings.c | 3 +++ src/surface.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/settings.c b/src/settings.c index 869475b..f2e1d70 100644 --- a/src/settings.c +++ b/src/settings.c @@ -241,6 +241,9 @@ static void CreateSettingsIni() "posX=0\n" "posY=0\n" "\n" + "[DKReign]\n" + "sleep=10\n" + "\n" , fh); fclose(fh); diff --git a/src/surface.c b/src/surface.c index 02dd4c3..8d79e44 100644 --- a/src/surface.c +++ b/src/surface.c @@ -28,6 +28,9 @@ DWORD WINAPI render_soft_main(void); HRESULT __stdcall ddraw_surface_QueryInterface(IDirectDrawSurfaceImpl *This, REFIID riid, void **obj) { printf("DirectDrawSurface::QueryInterface(This=%p, riid=%08X, obj=%p) ???\n", This, (unsigned int)riid, obj); + + *obj = This; + return S_OK; }