[MSPATCHA] Initial patch decoding + applying.

Some initial work is done, all testcases pass now.
However a lot of the patch format is still unknown / not working,
so do not expect anything other than the apitest to work yet.
The next thing to do now, is to gather input, output and patch files,
and analyze how the compression and patching works on bigger /
more complex files.
CORE-15417
This commit is contained in:
Mark Jansen 2018-12-08 23:49:57 +01:00
parent 33e3a69a7f
commit 97d7206f8b
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
5 changed files with 1263 additions and 21 deletions

View file

@ -32,8 +32,13 @@ extern "C" {
//
// apply error codes
//
#define ERROR_PATCH_DECODE_FAILURE 0xC00E4101
#define ERROR_PATCH_CORRUPT 0xC00E4102
#define ERROR_PATCH_NEWER_FORMAT 0xC00E4103
#define ERROR_PATCH_WRONG_FILE 0xC00E4104
#define ERROR_PATCH_NOT_NECESSARY 0xC00E4105
#define ERROR_PATCH_NOT_AVAILABLE 0xC00E4106
typedef struct _PATCH_IGNORE_RANGE
{