Commit cd0970eb authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

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

in the Microsoft headers and fix up the only caller.
parent c24ca67f
......@@ -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)
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment