22#define WIN32_NO_STATUS
32#define SIGNATURE_MIN_SIZE 9
34#define UNKNOWN_FLAGS_COMBINATION 0x00c40001
233 HANDLE hPatch, hOld, hNew;
301 ERR(
"Field after CRC is not 1 but %u\n",
Unknown);
309 ERR(
"Field1 after OldCrc is not 0 but %u\n",
Unknown);
313 ERR(
"Field2 after OldCrc is not 0 but %u\n",
Unknown);
319 ERR(
"Unable to read header, check previous logging!\n");
448 HANDLE hPatch, hOld, hNew;
508 if (ignore_range_count)
509 FIXME(
"Unhandled ignore_range_count %u\n", ignore_range_count);
510 if (retain_range_count)
511 FIXME(
"Unhandled ignore_range_count %u\n", retain_range_count);
517 FIXME(
"Potentially unimplemented case, normalized signature\n");
557 retain_range_count, retain_range,
sizeof(LocalBuf), LocalBuf);
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define ERROR_INSUFFICIENT_BUFFER
#define DLL_PROCESS_ATTACH
#define INVALID_HANDLE_VALUE
#define CreateFileMappingW(a, b, c, d, e, f)
#define CreateFileA(a, b, c, d, e, f, g)
#define FILE_ATTRIBUTE_NORMAL
#define MultiByteToWideChar
DWORD WINAPI GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh)
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
static UINT patch_file(MSIPACKAGE *package, MSIFILEPATCH *patch)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLuint GLsizei bufsize
void LZXteardown(struct LZXstate *pState)
int LZXdecompress(struct LZXstate *pState, unsigned char *inpos, unsigned char *outpos, int inlen, int outlen)
struct LZXstate * LZXinit(int wndsize)
static IN DWORD IN LPVOID lpvReserved
#define FILE_FLAG_SEQUENTIAL_SCAN
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static const char szHexString[]
BOOL WINAPI ApplyPatchToFileA(LPCSTR patch_file, LPCSTR old_file, LPCSTR new_file, ULONG apply_flags)
BOOL WINAPI GetFilePatchSignatureW(LPCWSTR filename, ULONG flags, PVOID data, ULONG ignore_range_count, PPATCH_IGNORE_RANGE ignore_range, ULONG retain_range_count, PPATCH_RETAIN_RANGE retain_range, ULONG bufsize, PVOID buffer)
static PBYTE MapFile(HANDLE hFile, DWORD *dwSize)
BOOL WINAPI ApplyPatchToFileByHandles(HANDLE patch_file, HANDLE old_file, HANDLE new_file, ULONG apply_flags)
BOOL WINAPI TestApplyPatchToFileByHandles(HANDLE patch_file, HANDLE old_file, ULONG apply_flags)
struct _SAFE_READ SAFE_READ
#define SIGNATURE_MIN_SIZE
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
USHORT ReadUShort(PSAFE_READ pRead)
BOOL WINAPI TestApplyPatchToFileW(LPCWSTR patch_file, LPCWSTR old_file, ULONG apply_flags)
BOOL WINAPI GetFilePatchSignatureByHandle(HANDLE hFile, ULONG flags, PVOID data, ULONG ignore_range_count, PPATCH_IGNORE_RANGE ignore_range, ULONG retain_range_count, PPATCH_RETAIN_RANGE retain_range, ULONG bufsize, PVOID buffer)
struct _PATCH_HEADER PATCH_HEADER
BOOL WINAPI GetFilePatchSignatureA(LPCSTR filename, ULONG flags, PVOID data, ULONG ignore_range_count, PPATCH_IGNORE_RANGE ignore_range, ULONG retain_range_count, PPATCH_RETAIN_RANGE retain_range, ULONG bufsize, PVOID buffer)
BOOL WINAPI TestApplyPatchToFileA(LPCSTR patch_file, LPCSTR old_file, ULONG apply_flags)
DWORD DecodeDWord(PSAFE_READ pRead)
DWORD CreateNewFileFromPatch(PATCH_HEADER *Header, SAFE_READ *Patch, HANDLE new_file)
DWORD ReadDWord(PSAFE_READ pRead)
BOOL WINAPI ApplyPatchToFileW(LPCWSTR patch_file, LPCWSTR old_file, LPCWSTR new_file, ULONG apply_flags)
DWORD ParseHeader(SAFE_READ *Patch, PATCH_HEADER *Header)
INT DecodeInt(PSAFE_READ pRead)
BYTE ReadByte(PSAFE_READ pRead)
#define UNKNOWN_FLAGS_COMBINATION
struct _SAFE_READ * PSAFE_READ
#define ERROR_PATCH_NOT_AVAILABLE
#define ERROR_PATCH_WRONG_FILE
#define ERROR_PATCH_DECODE_FAILURE
#define ERROR_PATCH_CORRUPT
#define APPLY_OPTION_TEST_ONLY
#define IMAGE_DOS_SIGNATURE
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
DWORD WINAPI GetLastError(void)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO