Skip to content

Commit

Permalink
Update usbhsfs_manager.c
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkMatterCore committed Nov 27, 2020
1 parent a1cd274 commit 38f8795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/usbhsfs_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ u32 usbHsFsListMountedDevices(UsbHsFsDevice *out, u32 max_count)
u32 device_count = (g_usbHsFsInitialized ? (!g_isSXOS ? usbHsFsMountGetDevoptabDeviceCount() : (g_sxOSDeviceAvailable ? 1 : 0)) : 0);
u32 ret = 0;

if (!g_driveCount || !g_driveContexts || !device_count || !out || !max_count)
if ((!g_isSXOS && (!g_driveCount || !g_driveContexts)) || !device_count || !out || !max_count)
{
USBHSFS_LOG("Invalid parameters!");
goto end;
Expand Down

0 comments on commit 38f8795

Please sign in to comment.