[USETUP] Comment out SetupQueueCopyWNew() declaration which is not used at all. Remove unnecessary casts in the INF_OpenBufferedFileA() call.

svn path=/branches/setup_improvements/; revision=75509
This commit is contained in:
Hermès Bélusca-Maïto 2017-08-08 14:07:17 +00:00
parent 9348fe1f7e
commit aa110db3ea
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 5 additions and 3 deletions

View file

@ -60,7 +60,7 @@ typedef UINT (CALLBACK* PSP_FILE_CALLBACK_W)(
typedef struct _COPYCONTEXT typedef struct _COPYCONTEXT
{ {
LPCWSTR DestinationRootPath; /* Not owned by this structure */ LPCWSTR DestinationRootPath; /* Not owned by this structure */
LPCWSTR InstallPath; /* Not owned by this structure */ LPCWSTR InstallPath; /* Not owned by this structure */
ULONG TotalOperations; ULONG TotalOperations;
ULONG CompletedOperations; ULONG CompletedOperations;
PPROGRESSBAR ProgressBar; PPROGRESSBAR ProgressBar;
@ -78,6 +78,7 @@ WINAPI
SetupCloseFileQueue( SetupCloseFileQueue(
IN HSPFILEQ QueueHandle); IN HSPFILEQ QueueHandle);
#if 0 // This is the API that is declared in setupapi.h and exported by setupapi.dll
BOOL BOOL
WINAPI WINAPI
SetupQueueCopyWNew( SetupQueueCopyWNew(
@ -90,6 +91,7 @@ SetupQueueCopyWNew(
IN PCWSTR TargetDirectory, IN PCWSTR TargetDirectory,
IN PCWSTR TargetFileName, IN PCWSTR TargetFileName,
IN DWORD CopyStyle); IN DWORD CopyStyle);
#endif
BOOL BOOL
SetupQueueCopy( SetupQueueCopy(

View file

@ -4078,9 +4078,9 @@ PrepareCopyPage(PINPUT_RECORD Ir)
return QUIT_PAGE; return QUIT_PAGE;
} }
InfHandle = INF_OpenBufferedFileA((CHAR*) InfFileData, InfHandle = INF_OpenBufferedFileA((PSTR)InfFileData,
InfFileSize, InfFileSize,
(const CHAR*) NULL, NULL,
INF_STYLE_WIN4, INF_STYLE_WIN4,
LanguageId, LanguageId,
&ErrorLine); &ErrorLine);