Commit 3a77ee1d authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

ole32: Fix CompositeMonikerImpl_GetSizeMax to match the data written by CompositeMonikerImpl_Save.

parent 9c6b6709
...@@ -303,19 +303,17 @@ CompositeMonikerImpl_GetSizeMax(IMoniker* iface,ULARGE_INTEGER* pcbSize) ...@@ -303,19 +303,17 @@ CompositeMonikerImpl_GetSizeMax(IMoniker* iface,ULARGE_INTEGER* pcbSize)
if (!pcbSize) if (!pcbSize)
return E_POINTER; return E_POINTER;
pcbSize->u.LowPart =0; pcbSize->QuadPart = sizeof(DWORD);
pcbSize->u.HighPart=0;
IMoniker_Enum(iface,TRUE,&enumMk); IMoniker_Enum(iface,TRUE,&enumMk);
while(IEnumMoniker_Next(enumMk,1,&pmk,NULL)){ while(IEnumMoniker_Next(enumMk,1,&pmk,NULL)==S_OK){
IMoniker_GetSizeMax(pmk,&ptmpSize); IMoniker_GetSizeMax(pmk,&ptmpSize);
IMoniker_Release(pmk); IMoniker_Release(pmk);
pcbSize->u.LowPart +=ptmpSize.u.LowPart; pcbSize->QuadPart = ptmpSize.QuadPart + sizeof(CLSID);
pcbSize->u.HighPart+=ptmpSize.u.HighPart;
} }
IEnumMoniker_Release(enumMk); IEnumMoniker_Release(enumMk);
......
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