[RSP] Force to compile in ANSI mode
Fixes RSP commands window and RSP register window not working Fix some warnings
This commit is contained in:
parent
914ad3b74a
commit
7475c20f19
|
@ -159,7 +159,7 @@ void DisplayError(char* Message, ...)
|
||||||
vsprintf( Msg, Message, ap );
|
vsprintf( Msg, Message, ap );
|
||||||
va_end( ap );
|
va_end( ap );
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
MessageBoxA(NULL, Msg, "Error", MB_OK | MB_ICONERROR);
|
MessageBox(NULL, Msg, "Error", MB_OK | MB_ICONERROR);
|
||||||
#else
|
#else
|
||||||
fputs(&Msg[0], stderr);
|
fputs(&Msg[0], stderr);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -184,7 +184,7 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ShellExecuteA(NULL,"open",LogFileName.c_str(),NULL,NULL,SW_SHOW);
|
ShellExecute(NULL,"open",LogFileName.c_str(),NULL,NULL,SW_SHOW);
|
||||||
ResetCounters();
|
ResetCounters();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -99,7 +99,7 @@ void Create_RSP_Commands_Window ( int Child )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (IsIconic((HWND)RSPCommandshWnd)) {
|
if (IsIconic((HWND)RSPCommandshWnd)) {
|
||||||
SendMessage(RSPCommandshWnd, WM_SYSCOMMAND, SC_RESTORE, NULL);
|
SendMessage(RSPCommandshWnd, WM_SYSCOMMAND, SC_RESTORE, 0);
|
||||||
}
|
}
|
||||||
SetForegroundWindow(RSPCommandshWnd);
|
SetForegroundWindow(RSPCommandshWnd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ LRESULT CALLBACK RSP_Registers_Proc ( HWND, UINT, WPARAM, LPARAM );
|
||||||
HWND RSP_Registers_hDlg, hTab, hStatic, hGPR[32], hCP0[16], hHIDDEN[12],
|
HWND RSP_Registers_hDlg, hTab, hStatic, hGPR[32], hCP0[16], hHIDDEN[12],
|
||||||
hVECT1[16], hVECT2[16];
|
hVECT1[16], hVECT2[16];
|
||||||
int InRSPRegisterWindow = FALSE;
|
int InRSPRegisterWindow = FALSE;
|
||||||
FARPROC RefreshProc;
|
WNDPROC RefreshProc;
|
||||||
|
|
||||||
/*** RSP Registers ***/
|
/*** RSP Registers ***/
|
||||||
UWORD32 RSP_GPR[32], RSP_Flags[4];
|
UWORD32 RSP_GPR[32], RSP_Flags[4];
|
||||||
|
@ -86,7 +86,7 @@ void Create_RSP_Register_Window ( int Child ) {
|
||||||
(LPVOID)TRUE,0, &ThreadID);
|
(LPVOID)TRUE,0, &ThreadID);
|
||||||
} else {
|
} else {
|
||||||
if (IsIconic((HWND)RSP_Registers_hDlg)) {
|
if (IsIconic((HWND)RSP_Registers_hDlg)) {
|
||||||
SendMessage(RSP_Registers_hDlg, WM_SYSCOMMAND, SC_RESTORE, NULL);
|
SendMessage(RSP_Registers_hDlg, WM_SYSCOMMAND, SC_RESTORE, 0);
|
||||||
}
|
}
|
||||||
SetForegroundWindow(RSP_Registers_hDlg);
|
SetForegroundWindow(RSP_Registers_hDlg);
|
||||||
}
|
}
|
||||||
|
@ -515,7 +515,7 @@ void SetupRSP_RegistersMain (HWND hDlg) {
|
||||||
|
|
||||||
hStatic = CreateWindowEx(0,"STATIC","", WS_CHILD|WS_VISIBLE, 5,6,616,290,hDlg,0,hinstDLL,NULL );
|
hStatic = CreateWindowEx(0,"STATIC","", WS_CHILD|WS_VISIBLE, 5,6,616,290,hDlg,0,hinstDLL,NULL );
|
||||||
#ifdef _M_IX86
|
#ifdef _M_IX86
|
||||||
RefreshProc = (FARPROC)SetWindowLong(hStatic, GWL_WNDPROC, (long)RefreshRSP_RegProc);
|
RefreshProc = (WNDPROC)SetWindowLong(hStatic, GWL_WNDPROC, (long)RefreshRSP_RegProc);
|
||||||
#else
|
#else
|
||||||
DebugBreak();
|
DebugBreak();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PrecompiledHeader />
|
<PrecompiledHeader />
|
||||||
|
<UndefinePreprocessorDefinitions>UNICODE;_UNICODE</UndefinePreprocessorDefinitions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link />
|
<Link />
|
||||||
<Bscmake>
|
<Bscmake>
|
||||||
|
|
Loading…
Reference in New Issue