[USETUP] Comment out SetupQueueCopyWNew() declaration which is not used at all. Remov...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 8 Aug 2017 14:07:17 +0000 (14:07 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 27 Oct 2018 01:17:59 +0000 (03:17 +0200)
svn path=/branches/setup_improvements/; revision=75509

base/setup/usetup/filequeue.h
base/setup/usetup/usetup.c

index ebc05e2..f43ef91 100644 (file)
@@ -60,7 +60,7 @@ typedef UINT (CALLBACK* PSP_FILE_CALLBACK_W)(
 typedef struct _COPYCONTEXT
 {
     LPCWSTR DestinationRootPath; /* Not owned by this structure */
-    LPCWSTR InstallPath; /* Not owned by this structure */
+    LPCWSTR InstallPath;         /* Not owned by this structure */
     ULONG TotalOperations;
     ULONG CompletedOperations;
     PPROGRESSBAR ProgressBar;
@@ -78,6 +78,7 @@ WINAPI
 SetupCloseFileQueue(
     IN HSPFILEQ QueueHandle);
 
+#if 0 // This is the API that is declared in setupapi.h and exported by setupapi.dll
 BOOL
 WINAPI
 SetupQueueCopyWNew(
@@ -90,6 +91,7 @@ SetupQueueCopyWNew(
     IN PCWSTR TargetDirectory,
     IN PCWSTR TargetFileName,
     IN DWORD CopyStyle);
+#endif
 
 BOOL
 SetupQueueCopy(
index b34a7b7..d59a751 100644 (file)
@@ -4078,9 +4078,9 @@ PrepareCopyPage(PINPUT_RECORD Ir)
             return QUIT_PAGE;
         }
 
-        InfHandle = INF_OpenBufferedFileA((CHAR*) InfFileData,
+        InfHandle = INF_OpenBufferedFileA((PSTR)InfFileData,
                                           InfFileSize,
-                                          (const CHAR*) NULL,
+                                          NULL,
                                           INF_STYLE_WIN4,
                                           LanguageId,
                                           &ErrorLine);