Use wxLoadedDLL for loading user32.dll dynamically

This avoids unnecessarily loading and unloading (except that it's not
really unloaded) a DLL which is always available anyhow.
This commit is contained in:
Vadim Zeitlin
2017-11-21 16:05:33 +01:00
parent 6ba3db7753
commit bf929f9868

View File

@@ -254,7 +254,7 @@ public:
private:
static void LoadGestureSymbols()
{
wxDynamicLibrary dll("User32.dll");
wxLoadedDLL dll(wxS("user32.dll"));
wxDL_INIT_FUNC(ms_pfn, GetGestureInfo, dll);
wxDL_INIT_FUNC(ms_pfn, CloseGestureInfoHandle, dll);