Author: weiden
Date: Fri Oct 13 16:52:24 2006
New Revision: 24502
URL:
http://svn.reactos.org/svn/reactos?rev=24502&view=rev
Log:
Fix building with GCC4
Modified:
trunk/reactos/base/applications/utils/binpatch/patch.c
trunk/reactos/base/applications/utils/partinfo/partinfo.rbuild
Modified: trunk/reactos/base/applications/utils/binpatch/patch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/utils/bi…
==============================================================================
--- trunk/reactos/base/applications/utils/binpatch/patch.c (original)
+++ trunk/reactos/base/applications/utils/binpatch/patch.c Fri Oct 13 16:52:24 2006
@@ -46,7 +46,7 @@
static char **m_argv = NULL;
/* patch buffer where we put the patch info into */
-static unsigned char m_patchBuffer[SIZEOF_PATCH_BUFFER_MAGIC + PATCH_BUFFER_SIZE] =
+static char m_patchBuffer[SIZEOF_PATCH_BUFFER_MAGIC + PATCH_BUFFER_SIZE] =
PATCH_BUFFER_MAGIC;
/** HELPER FUNCTIONS **********************************************************/
@@ -211,7 +211,7 @@
static int
outputPatch(const char *outputFileName)
{
- unsigned char *patchExe, *patchBuffer = NULL;
+ char *patchExe, *patchBuffer = NULL;
int i, size, patchExeSize, patchSize, stringSize, stringOffset, patchOffset;
Patch *patch;
PatchedFile *files;
Modified: trunk/reactos/base/applications/utils/partinfo/partinfo.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/utils/pa…
==============================================================================
--- trunk/reactos/base/applications/utils/partinfo/partinfo.rbuild (original)
+++ trunk/reactos/base/applications/utils/partinfo/partinfo.rbuild Fri Oct 13 16:52:24
2006
@@ -1,4 +1,4 @@
-<module name="partinfo" type="win32cui"
installbase="bin" installname="partinfo.exe">
+<module name="partinfo" type="win32cui"
installbase="bin" installname="partinfo.exe"
allowwarnings="true">
<define name="__USE_W32API" />
<library>msvcrt</library>
<library>kernel32</library>