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:
parent
ffc715a8d2
commit
468fecfc48
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue