summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--libpcsxcore/sio.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 145f4d53..938a4f31 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+May 12, 2010 Wei Mingzhi <whistler_wmz@users.sf.net>
+
+ * libpcsxcore/sio.c: Erase CdromId and CdromLabel when net connection
+ closed.
+
May 11, 2010 Wei Mingzhi <whistler_wmz@users.sf.net>
* gui/Gtk2Gui.c: Use TRUE/FALSE instead of 0/1 for NetOpened.
diff --git a/libpcsxcore/sio.c b/libpcsxcore/sio.c
index 6d61b002..4f4552ea 100644
--- a/libpcsxcore/sio.c
+++ b/libpcsxcore/sio.c
@@ -342,6 +342,10 @@ unsigned short sioReadBaud16() {
void netError() {
ClosePlugins();
SysMessage(_("Connection closed!\n"));
+
+ CdromId[0] = '\0';
+ CdromLabel[0] = '\0';
+
SysRunGui();
}