CVE-2012-3345
This commit is contained in:
parent
fb1f629bbc
commit
b5acc31a4d
5 changed files with 1 additions and 59 deletions
|
@ -127,24 +127,6 @@ char *Sys_DefaultHomePath( void )
|
|||
return homePath;
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
Sys_TempPath
|
||||
================
|
||||
*/
|
||||
const char *Sys_TempPath( void )
|
||||
{
|
||||
static TCHAR path[ MAX_PATH ];
|
||||
DWORD length;
|
||||
|
||||
length = GetTempPath( sizeof( path ), path );
|
||||
|
||||
if( length > sizeof( path ) || length == 0 )
|
||||
return Sys_DefaultHomePath( );
|
||||
else
|
||||
return path;
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
Sys_Milliseconds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue