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