From 01515a4d2d309cfebf4e3dab3ad68787f93050e1 Mon Sep 17 00:00:00 2001 From: Linda Andersson Date: Wed, 27 Nov 2013 16:21:57 +0100 Subject: [PATCH] merge with physics --- Code/DanBiasGame/DanBiasMaincpp.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Code/DanBiasGame/DanBiasMaincpp.cpp b/Code/DanBiasGame/DanBiasMaincpp.cpp index 4eebe2ad..df10baec 100644 --- a/Code/DanBiasGame/DanBiasMaincpp.cpp +++ b/Code/DanBiasGame/DanBiasMaincpp.cpp @@ -86,14 +86,24 @@ int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdL DWORD dwReserved; // must be zero } LOADPARMS32; LOADPARMS32 p; - memset(&p, 0, sizeof(LOADPARMS32)); p.lpEnvAddress = ""; p.lpCmdLine = ""; p.lpCmdShow = ""; p.dwReserved = 0; - DWORD ret = LoadModule("OysterGraphics_x86D.dll", &p); - ret = LoadModule("GameLogic_x86D.dll", &p); + DWORD ret = 1; + ret = LoadModule("OysterGraphics_x86D.dll", &p); + if( ret == 0) + { + // error + return 0; + } + ret = LoadModule("GameLogic_x86D.dll", &p); + if( ret == 0) + { + // error + return 0; + } if( FAILED( InitWindow( hInstance, nCmdShow ) ) ) return 0;