fixed crash when entering OAL config

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@195 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
spacy51 2007-12-14 18:20:10 +00:00
parent ffc715a8d2
commit 468fecfc48
1 changed files with 3 additions and 5 deletions

View File

@ -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;
}