mirror of
https://github.com/libretro/pcsx2.git
synced 2025-01-02 23:38:48 +00:00
LilyPad: Minor fix for redundant initialization of critical section.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2088 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
7e63cc820d
commit
b0b928d4f4
@ -267,6 +267,8 @@ void UpdateEnabledDevices(int updateList = 0) {
|
||||
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, void* lpvReserved) {
|
||||
hInst = hInstance;
|
||||
if (fdwReason == DLL_PROCESS_ATTACH) {
|
||||
InitializeCriticalSection( &updateLock );
|
||||
|
||||
DisableThreadLibraryCalls(hInstance);
|
||||
}
|
||||
else if (fdwReason == DLL_PROCESS_DETACH) {
|
||||
@ -275,6 +277,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, void* lpvReserved) {
|
||||
PADshutdown();
|
||||
UninitHid();
|
||||
UninitLibUsb();
|
||||
DeleteCriticalSection( &updateLock );
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
@ -671,8 +674,6 @@ void CALLBACK PADshutdown() {
|
||||
pads[i&1][i>>1].initialized = 0;
|
||||
portInitialized[0] = portInitialized[1] = 0;
|
||||
UnloadConfigs();
|
||||
|
||||
DeleteCriticalSection( &updateLock );
|
||||
}
|
||||
|
||||
inline void StopVibrate() {
|
||||
@ -757,8 +758,6 @@ s32 CALLBACK PADinit(u32 flags) {
|
||||
// Just in case, when resuming emulation.
|
||||
ReleaseModifierKeys();
|
||||
|
||||
InitializeCriticalSection( &updateLock );
|
||||
|
||||
DEBUG_TEXT_OUT("LilyPad initialized\n\n");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user