Make the DECIMAL_SETZERO macro take a DECIMAL instead of a DECIMAL* as

in the Microsoft headers and fix up the only caller.
oldstable
Robert Shearman 2004-12-08 13:59:52 +00:00 committed by Alexandre Julliard
parent c24ca67f58
commit cd0970eb24
2 changed files with 2 additions and 2 deletions

View File

@ -2390,7 +2390,7 @@ HRESULT WINAPI VarNumFromParseNum(NUMPARSE *pNumprs, BYTE *rgbDig,
ULONG64 tmp;
DECIMAL* pDec = &V_DECIMAL(pVarDst);
DECIMAL_SETZERO(pDec);
DECIMAL_SETZERO(*pDec);
DEC_LO32(pDec) = 0;
if (pNumprs->dwOutFlags & NUMPRS_NEG)

View File

@ -631,7 +631,7 @@ cpp_quote(" } DUMMYUNIONNAME1;")
cpp_quote("} DECIMAL;")
cpp_quote("#endif")
cpp_quote("#define DECIMAL_NEG ((BYTE)0x80)")
cpp_quote("#define DECIMAL_SETZERO(d) do{ memset(((char*)(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u + sizeof(USHORT)); }while (0)")
cpp_quote("#define DECIMAL_SETZERO(d) do{ memset(((char*)&(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u + sizeof(USHORT)); }while (0)")
typedef DECIMAL *LPDECIMAL;