Author: tkreuzer
Date: Fri Apr 8 16:12:18 2011
New Revision: 51279
URL:
http://svn.reactos.org/svn/reactos?rev=51279&view=rev
Log:
[SPEC2DEF]
Fix stack byte calculation on 64 bit hosts.
Modified:
branches/cmake-bringup/tools/spec2def/spec2def.c
Modified: branches/cmake-bringup/tools/spec2def/spec2def.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/spec2def/sp…
==============================================================================
--- branches/cmake-bringup/tools/spec2def/spec2def.c [iso-8859-1] (original)
+++ branches/cmake-bringup/tools/spec2def/spec2def.c [iso-8859-1] Fri Apr 8 16:12:18
2011
@@ -530,7 +530,7 @@
CompareToken(pc, "str") ||
CompareToken(pc, "wstr"))
{
- exp.nStackBytes += sizeof(void*);
+ exp.nStackBytes += 4; // sizeof(void*) on x86
exp.anArgs[exp.nArgCount] = ARG_PTR; // FIXME: handle strings
}
else if (CompareToken(pc, "int64"))