From 0f6e8c372178a14c3345a4efa2bd54ad9d910102 Mon Sep 17 00:00:00 2001 From: OV2 Date: Sat, 7 May 2011 18:35:11 +0200 Subject: [PATCH] Win32: fix netplay connect --- win32/wsnes9x.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index d7d81f12..6bf7c357 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -1431,7 +1431,7 @@ LRESULT CALLBACK WinProc( unsigned int i; //bool showFPS; #ifdef NETPLAY_SUPPORT - char hostname [100]; + TCHAR hostname [100]; #endif switch (uMsg) { @@ -1866,7 +1866,7 @@ LRESULT CALLBACK WinProc( S9xSetPause (PAUSE_NETPLAY_CONNECT); - if (!S9xNPConnectToServer (hostname, Settings.Port, + if (!S9xNPConnectToServer (_tToChar(hostname), Settings.Port, Memory.ROMName)) { S9xClearPause (PAUSE_NETPLAY_CONNECT);