diff --git a/emummc/.gitrepo b/emummc/.gitrepo index 73225cc1e..d9f486747 100644 --- a/emummc/.gitrepo +++ b/emummc/.gitrepo @@ -6,7 +6,7 @@ [subrepo] remote = https://github.com/m4xw/emuMMC branch = develop - commit = 5eed18eb527bbaa63aee5323c26de5b0cca6d28e + commit = 5a29e1b2cb1b60771594999fa1671fea19c596fc parent = 021b29d2dbc8ed0469bc822393e58c9f0d174d57 method = rebase cmdver = 0.4.1 diff --git a/emummc/source/emuMMC/emummc.c b/emummc/source/emuMMC/emummc.c index 49f1ca540..b1c1e1e95 100644 --- a/emummc/source/emuMMC/emummc.c +++ b/emummc/source/emuMMC/emummc.c @@ -328,13 +328,13 @@ uint64_t sdmmc_wrapper_controller_open(int mmc_id) if (_this != NULL) { // Lock eMMC xfer while SD card is being initialized by FS. - if (_this == sdmmc_accessor_get(FS_SDMMC_SD)) + if (mmc_id == FS_SDMMC_SD) mutex_lock_handler(FS_SDMMC_EMMC); // Recursive Mutex, handler will lock SD as well if custom_driver result = _this->vtab->sdmmc_accessor_controller_open(_this); // Unlock eMMC. - if (_this == sdmmc_accessor_get(FS_SDMMC_SD)) + if (mmc_id == FS_SDMMC_SD) mutex_unlock_handler(FS_SDMMC_EMMC); return result;