diff --git a/netplay.cpp b/netplay.cpp index 4fb5f466..04df6984 100644 --- a/netplay.cpp +++ b/netplay.cpp @@ -5,11 +5,6 @@ \*****************************************************************************/ #ifdef NETPLAY_SUPPORT -#ifdef _DEBUG - #define NP_DEBUG 1 -#endif - -#define NP_DEBUG 3 // FF-FIXME #include #include @@ -555,7 +550,7 @@ bool8 S9xNPLoadROMDialog (const char *rom_name) printf ("CLIENT: Asking GUI thread to open ROM load dialog...\n"); #endif - PostMessage (GUI.hWnd, WM_USER + 3, (uint32) rom_name, (uint32) rom_name); + PostMessage (GUI.hWnd, WM_USER + 3, (WPARAM) rom_name, (LPARAM) rom_name); #ifdef NP_DEBUG printf ("CLIENT: Waiting for reply from GUI thread...\n"); diff --git a/netplay.h b/netplay.h index b7dd340f..def127d7 100644 --- a/netplay.h +++ b/netplay.h @@ -22,7 +22,9 @@ * joypad data 4 * n */ -//#define NP_DEBUG 1 +#ifdef _DEBUG +#define NP_DEBUG 1 +#endif #define NP_VERSION 10 #define NP_JOYPAD_HIST_SIZE 120 diff --git a/server.cpp b/server.cpp index 2bfe8437..dd02087e 100644 --- a/server.cpp +++ b/server.cpp @@ -5,9 +5,6 @@ \*****************************************************************************/ #ifdef NETPLAY_SUPPORT -#ifdef _DEBUG - #define NP_DEBUG 1 -#endif #include #include @@ -478,7 +475,7 @@ void S9xNPProcessClient (int c) } else #ifdef __WIN32__ - S9xNPServerAddTask (NP_SERVER_SYNC_CLIENT, (void *) c); + S9xNPServerAddTask (NP_SERVER_SYNC_CLIENT, (void *)(UINT_PTR) c); #else /* We need to resync all clients on new player connect as we don't have a 'reference game' */ S9xNPServerAddTask (NP_SERVER_SYNC_ALL, (void *) (pint) c);