]> git.sur5r.net Git - bacula/bacula/commitdiff
Eliminate compiler warning in vss_generic.cpp
authorKern Sibbald <kern@sibbald.com>
Sat, 15 Mar 2008 20:02:00 +0000 (20:02 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 15 Mar 2008 20:02:00 +0000 (20:02 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6613 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/win32/filed/vss_generic.cpp

index 6eec792eb83a37a7d6d45452f6146432fadd6039..96ebcb4dde57aff1860fa2a47932b99fa85f0a3c 100644 (file)
@@ -368,17 +368,15 @@ BOOL VSSClientGeneric::WaitAndCheckForAsyncOperation(IVssAsync* pAsync)
    if(hrReturned != VSS_S_ASYNC_FINISHED) {   
       wchar_t *pwszBuffer = NULL;
       /* I don't see the usefulness of the following -- KES */
-      DWORD dwRet = ::FormatMessageW(
-                        FORMAT_MESSAGE_ALLOCATE_BUFFER 
-                        | FORMAT_MESSAGE_FROM_SYSTEM 
-                        | FORMAT_MESSAGE_IGNORE_INSERTS,
-                        NULL, hrReturned, 
-                        MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 
-                        (LPWSTR)&pwszBuffer, 0, NULL);
-
-//    if (dwRet != 0) {         
-         LocalFree(pwszBuffer);         
-//    }      
+      FormatMessageW(
+         FORMAT_MESSAGE_ALLOCATE_BUFFER 
+         | FORMAT_MESSAGE_FROM_SYSTEM 
+         | FORMAT_MESSAGE_IGNORE_INSERTS,
+         NULL, hrReturned, 
+         MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 
+         (LPWSTR)&pwszBuffer, 0, NULL);
+
+      LocalFree(pwszBuffer);         
       errno = b_errno_win32;
    }
 #endif