launcher: fix crashing
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||
#include <windows.h>
|
||||
#include <vector>
|
||||
#include "framework.h"
|
||||
|
||||
// resolution class to store and sort the width and height easily
|
||||
class resolution
|
||||
|
||||
@@ -313,12 +313,13 @@ std::vector<PluginInfo> LoadPlugins()
|
||||
if (descFunc != NULL)
|
||||
thisplugin.description = descFunc();
|
||||
else
|
||||
thisplugin.description = (thisplugin.filename + L" plugin").c_str();
|
||||
thisplugin.description = (thisplugin.filename + L" Plugin").c_str();
|
||||
|
||||
if (optsFunc != NULL)
|
||||
thisplugin.configopts = optsFunc();
|
||||
|
||||
FreeLibrary(thisplugin.handle);
|
||||
// afaik FreeLibrary should be fine because of ref counting, but it isn't. whatever.
|
||||
// FreeLibrary(thisplugin.handle);
|
||||
|
||||
outvec.push_back(thisplugin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user