mirror of
https://github.com/reactos/reactos.git
synced 2024-07-14 08:26:08 +00:00
fix a crash in the msvc8 backend
svn path=/trunk/; revision=25957
This commit is contained in:
parent
ae80dd6422
commit
46921a9a8f
|
@ -71,9 +71,16 @@ MSVCBackend::_generate_vcproj ( const Module& module )
|
|||
size_t i;
|
||||
|
||||
string vcproj_file = VcprojFileName(module);
|
||||
string computername;
|
||||
string username;
|
||||
|
||||
if (getenv ( "USERNAME" ) != NULL)
|
||||
username = getenv ( "USERNAME" );
|
||||
if (getenv ( "COMPUTERNAME" ) != NULL)
|
||||
computername = getenv ( "COMPUTERNAME" );
|
||||
else if (getenv ( "HOSTNAME" ) != NULL)
|
||||
computername = getenv ( "HOSTNAME" );
|
||||
|
||||
string username = getenv ( "USERNAME" );
|
||||
string computername = getenv ( "COMPUTERNAME" );
|
||||
string vcproj_file_user = "";
|
||||
|
||||
if ((computername != "") && (username != ""))
|
||||
|
|
Loading…
Reference in a new issue