Fix throw of exceptions in FileSystemModule ctor

This commit is contained in:
David Capello 2014-04-21 23:30:04 -03:00
parent 6634c12ad2
commit a711c8be17

View File

@ -206,12 +206,12 @@ FileSystemModule::FileSystemModule()
/* get the IMalloc interface */
HRESULT hr = SHGetMalloc(&shl_imalloc);
if (hr != S_OK)
throw new std::runtime_error("Error initializing file system. Report this problem. (SHGetMalloc failed.)");
throw std::runtime_error("Error initializing file system. Report this problem. (SHGetMalloc failed.)");
/* get desktop IShellFolder interface */
hr = SHGetDesktopFolder(&shl_idesktop);
if (hr != S_OK)
throw new std::runtime_error("Error initializing file system. Report this problem. (SHGetDesktopFolder failed.)");
throw std::runtime_error("Error initializing file system. Report this problem. (SHGetDesktopFolder failed.)");
#endif
// first version of the file system