From 468fecfc48543d7b078f9a273c5ce2ffb8ad3397 Mon Sep 17 00:00:00 2001 From: spacy51 Date: Fri, 14 Dec 2007 18:20:10 +0000 Subject: [PATCH] fixed crash when entering OAL config git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@195 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/OALConfig.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/win32/OALConfig.cpp b/src/win32/OALConfig.cpp index 4fd33751..d95ab02e 100644 --- a/src/win32/OALConfig.cpp +++ b/src/win32/OALConfig.cpp @@ -20,7 +20,9 @@ OALConfig::OALConfig(CWnd* pParent /*=NULL*/) : CDialog(OALConfig::IDD, pParent) , selectedDevice(_T("")) { - + if( !LoadOAL10Library( NULL, &ALFunction ) ) { + systemMessage( IDS_OAL_NODLL, "OpenAL32.dll could not be found on your system. Please install the runtime from http://openal.org" ); + } } OALConfig::~OALConfig() @@ -54,10 +56,6 @@ BOOL OALConfig::OnInitDialog() { CDialog::OnInitDialog(); - if( !LoadOAL10Library( NULL, &ALFunction ) ) { - systemMessage( IDS_OAL_NODLL, "OpenAL32.dll could not be found on your system. Please install the runtime from http://openal.org" ); - return false; - } return TRUE; }