winecfg: Simplified module handling code.
This commit is contained in:
parent
73893a74fd
commit
e7ecbe4228
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FreeLibrary(lib);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue