Make the DECIMAL_SETZERO macro take a DECIMAL instead of a DECIMAL* as
in the Microsoft headers and fix up the only caller.
This commit is contained in:
parent
c24ca67f58
commit
cd0970eb24
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue