OSDN Git Service

Look at "HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\SourceSafe\\Databases" for finding...
authorsdottaka <none@none>
Fri, 28 Jun 2013 23:04:05 +0000 (08:04 +0900)
committersdottaka <none@none>
Fri, 28 Jun 2013 23:04:05 +0000 (08:04 +0900)
Src/VssPrompt.cpp

index 344bad9..ae11af9 100644 (file)
@@ -103,9 +103,12 @@ BOOL CVssPrompt::OnInitDialog()
        // Open key containing VSS databases
        if (!reg.QueryRegMachine(_T("SOFTWARE\\Microsoft\\SourceSafe\\Databases")))
        {
-               String msg = theApp.LoadString(IDS_VSS_NODATABASES);
-               AfxMessageBox(msg.c_str(), MB_ICONERROR);
-               return FALSE;
+               if (!reg.QueryRegUser(_T("SOFTWARE\\Microsoft\\SourceSafe\\Databases")))
+               {
+                       String msg = theApp.LoadString(IDS_VSS_NODATABASES);
+                       AfxMessageBox(msg.c_str(), MB_ICONERROR);
+                       return FALSE;
+               }
        }
 
        HKEY hreg = reg.GetKey();