Remove BEAST_CATCH_UNHANDLED_EXCEPTIONS

This commit is contained in:
Vinnie Falco
2013-09-09 13:34:18 -07:00
parent d8ea4f9b06
commit 4676db126a
6 changed files with 15 additions and 59 deletions

View File

@@ -860,12 +860,8 @@ bool Process::openDocument (const String& fileName, const String& parameters)
{
HINSTANCE hInstance = 0;
BEAST_TRY
{
hInstance = ShellExecute (0, 0, fileName.toWideCharPointer(),
parameters.toWideCharPointer(), 0, SW_SHOWDEFAULT);
}
BEAST_CATCH_ALL
hInstance = ShellExecute (0, 0, fileName.toWideCharPointer(),
parameters.toWideCharPointer(), 0, SW_SHOWDEFAULT);
return hInstance > (HINSTANCE) 32;
}

View File

@@ -335,26 +335,18 @@ bool DynamicLibrary::open (const String& name)
{
close();
BEAST_TRY
{
handle = LoadLibrary (name.toWideCharPointer());
}
BEAST_CATCH_ALL
handle = LoadLibrary (name.toWideCharPointer());
return handle != nullptr;
}
void DynamicLibrary::close()
{
BEAST_TRY
if (handle != nullptr)
{
if (handle != nullptr)
{
FreeLibrary ((HMODULE) handle);
handle = nullptr;
}
FreeLibrary ((HMODULE) handle);
handle = nullptr;
}
BEAST_CATCH_ALL
}
void* DynamicLibrary::getFunction (const String& functionName) noexcept