Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: third_party/bspatch/mbspatch.h

Issue 268: Fix binary patching for localized OS. Not sure how it was working till now.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/installer/setup/main.cc ('k') | third_party/bspatch/mbspatch.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /*- 1 /*-
2 * Copyright 2003,2004 Colin Percival 2 * Copyright 2003,2004 Colin Percival
3 * All rights reserved 3 * All rights reserved
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted providing that the following conditions 6 * modification, are permitted providing that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 unsigned int x; /* add x bytes from oldfile to x bytes from the diff block */ 95 unsigned int x; /* add x bytes from oldfile to x bytes from the diff block */
96 unsigned int y; /* copy y bytes from the extra block */ 96 unsigned int y; /* copy y bytes from the extra block */
97 int z; /* seek forwards in oldfile by z bytes */ 97 int z; /* seek forwards in oldfile by z bytes */
98 } MBSPatchTriple; 98 } MBSPatchTriple;
99 99
100 /** 100 /**
101 * Apply the given patch file to a given source file. This method validates 101 * Apply the given patch file to a given source file. This method validates
102 * the CRC of the original file stored in the patch file, before applying the 102 * the CRC of the original file stored in the patch file, before applying the
103 * patch to it. 103 * patch to it.
104 */ 104 */
105 int ApplyBinaryPatch(const char *old_file, const char *patch_file, 105 int ApplyBinaryPatch(const wchar_t *old_file, const wchar_t *patch_file,
106 const char *new_file); 106 const wchar_t *new_file);
107 107
108 /** 108 /**
109 * Calculates Crc of the given buffer by calling CRC method in LZMA SDK 109 * Calculates Crc of the given buffer by calling CRC method in LZMA SDK
110 */ 110 */
111 int CalculateCrc(const unsigned char *buf, int size); 111 int CalculateCrc(const unsigned char *buf, int size);
112 #endif // bspatch_h__ 112 #endif // bspatch_h__
OLDNEW
« no previous file with comments | « chrome/installer/setup/main.cc ('k') | third_party/bspatch/mbspatch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698