fixed crash when entering OAL config

This commit is contained in:
spacy51 2007-12-14 18:20:10 +00:00
parent 98cd8a44e3
commit be5a6182cc
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;
}