mirror of
https://github.com/dborth/vbagx.git
synced 2024-12-28 03:31:49 +01:00
usb fix
This commit is contained in:
parent
e28daf3cc2
commit
67d5d3d0c7
@ -369,13 +369,6 @@ static bool __usb2storage_Shutdown(void)
|
|||||||
if (currentMode == 1)
|
if (currentMode == 1)
|
||||||
return __io_usb1storage.shutdown();
|
return __io_usb1storage.shutdown();
|
||||||
|
|
||||||
if(usb2_mutex == LWP_MUTEX_NULL)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
LWP_MutexLock(usb2_mutex);
|
|
||||||
USB2Storage_Close();
|
|
||||||
debug_printf("__usb2storage_Shutdown\n");
|
|
||||||
LWP_MutexUnlock(usb2_mutex);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -389,4 +382,5 @@ const DISC_INTERFACE __io_usb2storage = {
|
|||||||
(FN_MEDIUM_CLEARSTATUS) & __usb2storage_ClearStatus,
|
(FN_MEDIUM_CLEARSTATUS) & __usb2storage_ClearStatus,
|
||||||
(FN_MEDIUM_SHUTDOWN) & __usb2storage_Shutdown
|
(FN_MEDIUM_SHUTDOWN) & __usb2storage_Shutdown
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user