Author: cwittich
Date: Fri Mar 2 23:30:12 2007
New Revision: 25957
URL:
http://svn.reactos.org/svn/reactos?rev=25957&view=rev
Log:
fix a crash in the msvc8 backend
Modified:
trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp
Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/msvc/…
==============================================================================
--- trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp (original)
+++ trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp Fri Mar 2 23:30:12 2007
@@ -71,9 +71,16 @@
size_t i;
string vcproj_file = VcprojFileName(module);
-
- string username = getenv ( "USERNAME" );
- string computername = getenv ( "COMPUTERNAME" );
+ 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 vcproj_file_user = "";
if ((computername != "") && (username != ""))