mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: win32: fix msvc warning "'LPSTR' differs in levels of indirection from 'string (*)'" with GetConsoleTitleA
This commit is contained in:
@@ -510,7 +510,7 @@ void Wcon_CreateConsole( qboolean con_showalways )
|
||||
s_wcd.attached = ( AttachConsole( ATTACH_PARENT_PROCESS ) != 0 );
|
||||
if( s_wcd.attached )
|
||||
{
|
||||
GetConsoleTitle( &s_wcd.previousTitle, sizeof( s_wcd.previousTitle ));
|
||||
GetConsoleTitle( s_wcd.previousTitle, sizeof( s_wcd.previousTitle ));
|
||||
s_wcd.previousCodePage = GetConsoleCP();
|
||||
s_wcd.previousOutputCodePage = GetConsoleOutputCP();
|
||||
}
|
||||
@@ -599,7 +599,7 @@ void Wcon_DestroyConsole( void )
|
||||
// reverts title & code page for console window that was before starting Xash3D
|
||||
SetConsoleCP( s_wcd.previousCodePage );
|
||||
SetConsoleOutputCP( s_wcd.previousOutputCodePage );
|
||||
SetConsoleTitle( &s_wcd.previousTitle );
|
||||
SetConsoleTitle( s_wcd.previousTitle );
|
||||
Con_Printf( "Press Enter to continue...\n" );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user