diff --git a/devtools/bin/vpc.exe b/devtools/bin/vpc.exe index 7fc8506..a6a0915 100644 Binary files a/devtools/bin/vpc.exe and b/devtools/bin/vpc.exe differ diff --git a/external/vpc/utils/vpc/solutiongenerator_win32.cpp b/external/vpc/utils/vpc/solutiongenerator_win32.cpp index ee2f9cb..f497b19 100644 --- a/external/vpc/utils/vpc/solutiongenerator_win32.cpp +++ b/external/vpc/utils/vpc/solutiongenerator_win32.cpp @@ -46,7 +46,7 @@ public: } for ( int vsVer = firstVer; vsVer <= lastVer; ++vsVer ) { - /* + // Handle both VisualStudio and VCExpress (used by some SourceSDK customers) RegStartPoint searchPoints[] = { @@ -60,8 +60,8 @@ public: char pRegKeyName[1000]; V_snprintf( pRegKeyName, ARRAYSIZE(pRegKeyName), searchPoint.baseDir, vsVer ); LONG ret = RegOpenKeyEx( searchPoint.baseKey, pRegKeyName, 0, KEY_READ, &hKey ); - //if ( ret != ERROR_SUCCESS ) - // g_pVPC->VPCError( "Unable to open registry key %s.", pRegKeyName ); + if ( ret != ERROR_SUCCESS ) + g_pVPC->VPCError( "Unable to open registry key %s.", pRegKeyName ); for ( int i=0; i < 200; i++ ) { @@ -93,13 +93,13 @@ public: RegCloseKey( hKey ); } - */ - { - char szKeyName[MAX_PATH]; - DWORD dwKeyNameSize = sizeof(szKeyName); - V_strncpy(szSolutionGUID, szKeyName, ARRAYSIZE(szSolutionGUID)); - return; - } + + //{ + // char szKeyName[MAX_PATH]; + // DWORD dwKeyNameSize = sizeof(szKeyName); + // V_strncpy(szSolutionGUID, szKeyName, ARRAYSIZE(szSolutionGUID)); + // return; + //} } g_pVPC->VPCError( "Unable to find RegKey for .vcproj or .vcxproj files in solutions." ); }