/* */
#undef VERSION
-#define VERSION "1.37.31"
+#define VERSION "1.37.32"
#define BDATE "22 July 2005"
#define LSMDATE "22Jul05"
-// -*- Mode: C++ -*-
+
// vss.cpp -- Interface to Volume Shadow Copies (VSS)
//
// Copyright transferred from MATRIX-Computer GmbH to
-BOOL VSSClient::GetShadowPath (const char *szFilePath, char *szShadowPath, int nBuflen)
+BOOL VSSClient::GetShadowPath(const char *szFilePath, char *szShadowPath, int nBuflen)
{
if (!m_bBackupIsInitialized)
return FALSE;
- /* check for valid pathname -- note, allow simple drive letter too */
+ /* check for valid pathname */
BOOL bIsValidName;
- bIsValidName = strlen(szFilePath) >= 2;
+ bIsValidName = strlen(szFilePath) > 3;
if (bIsValidName)
bIsValidName &= isalpha (szFilePath[0]) &&
- szFilePath[1]==':';
+ szFilePath[1]==':' &&
+ szFilePath[2] == '\\';
if (bIsValidName) {
int nDriveIndex = toupper(szFilePath[0])-'A';