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:
@@ -254,7 +254,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
static void LoadGestureSymbols()
|
static void LoadGestureSymbols()
|
||||||
{
|
{
|
||||||
wxDynamicLibrary dll("User32.dll");
|
wxLoadedDLL dll(wxS("user32.dll"));
|
||||||
|
|
||||||
wxDL_INIT_FUNC(ms_pfn, GetGestureInfo, dll);
|
wxDL_INIT_FUNC(ms_pfn, GetGestureInfo, dll);
|
||||||
wxDL_INIT_FUNC(ms_pfn, CloseGestureInfoHandle, dll);
|
wxDL_INIT_FUNC(ms_pfn, CloseGestureInfoHandle, dll);
|
||||||
|
Reference in New Issue
Block a user