[RAPPS]
authorAlexander Shaposhnikov <sanchaez@reactos.org>
Thu, 24 Aug 2017 21:56:27 +0000 (21:56 +0000)
committerAlexander Shaposhnikov <sanchaez@reactos.org>
Thu, 24 Aug 2017 21:56:27 +0000 (21:56 +0000)
- Clean up the DB directory if extracting failed

svn path=/branches/GSoC_2017/rapps/; revision=75660

reactos/base/applications/rapps/misc.cpp

index 2ea023d..3e6e389 100644 (file)
@@ -268,6 +268,10 @@ BOOL ExtractFilesFromCab(LPCWSTR lpCabName, LPCWSTR lpOutputPath)
                     FreeLibrary(hCabinetDll);
                     return TRUE;
                 }
+                else
+                {
+                    RemoveDirectoryW(lpOutputPath);
+                }
             }
         }
         FreeLibrary(hCabinetDll);