Commit e7ecbe42 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winecfg: Simplified module handling code.

parent 73893a74
...@@ -171,10 +171,8 @@ static void initAudioDeviceTree(HWND hDlg) ...@@ -171,10 +171,8 @@ static void initAudioDeviceTree(HWND hDlg)
} }
else else
{ {
HINSTANCE lib; HMODULE lib;
if ((lib = GetDriverModuleHandle(hdrv)))
lib = LoadLibrary(name);
if (lib)
{ {
int num_wod = 0, num_wid = 0, num_mod = 0, num_mid = 0, num_aux = 0, num_mxd = 0; int num_wod = 0, num_wid = 0, num_mod = 0, num_mid = 0, num_aux = 0, num_mxd = 0;
MessagePtr wodMessagePtr = (MessagePtr)GetProcAddress(lib, "wodMessage"); MessagePtr wodMessagePtr = (MessagePtr)GetProcAddress(lib, "wodMessage");
...@@ -371,7 +369,6 @@ static void initAudioDeviceTree(HWND hDlg) ...@@ -371,7 +369,6 @@ static void initAudioDeviceTree(HWND hDlg)
} }
} }
} }
FreeLibrary(lib);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment