diff --git a/desmume/src/firmware.cpp b/desmume/src/firmware.cpp index 14ec129cb..9456bcf4d 100644 --- a/desmume/src/firmware.cpp +++ b/desmume/src/firmware.cpp @@ -823,7 +823,9 @@ int NDS_CreateDummyFirmware( struct NDS_fw_config_data *user_settings) //Wifi settings CRC16 (*(u16*)(MMU.fw.data + 0x2A)) = calc_CRC16(0, (MMU.fw.data + 0x2C), 0x138); - memcpy(&CommonSettings.InternalFirmConf, user_settings, sizeof(struct NDS_fw_config_data)); + if (&CommonSettings.InternalFirmConf != user_settings) + memcpy(&CommonSettings.InternalFirmConf, user_settings, sizeof(struct NDS_fw_config_data)); + return TRUE ; }