Ignore:
Timestamp:
Sep 14, 2000, 4:57:01 PM (25 years ago)
Author:
davidr
Message:

BugFixes & Updates (CorelWine)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ole32/antimoniker.cpp

    r1033 r4258  
    1 /* $Id: antimoniker.cpp,v 1.2 1999-09-24 21:49:42 davidr Exp $ */
     1/* $Id: antimoniker.cpp,v 1.3 2000-09-14 14:57:00 davidr Exp $ */
    22/*
    33 * AntiMonikers functions.
    44 *
    5  * 20/9/99
    6  *
    7  * Copyright 1999 David J. Raison
     5 * Copyright 1999, 2000 David J. Raison
    86 *
    97 * Direct port of Wine Implementation
    108 *   Copyright 1999  Noomen Hamza
     9 *
     10 * Updates.
     11 *   14/09/2000 Updated from CorelWine
     12 *
    1113 */
    1214
     
    1416#include "debugtools.h"
    1517
    16 DEFAULT_DEBUG_CHANNEL(ole)
     18DEFAULT_DEBUG_CHANNEL(moniker)
    1719
    1820/* AntiMoniker data structure */
     
    196198HRESULT WINAPI AntiMonikerImpl_GetClassID(IMoniker* iface,CLSID *pClassID)
    197199{
    198     TRACE("(%p,%p),stub!\n",iface,pClassID);
     200    TRACE("(iface:%p ClassID:%p [CLSID_AntiMoniker])\n",iface,pClassID);
    199201
    200202    if (pClassID==NULL)
     
    252254
    253255/******************************************************************************
     256 *        AntiMonikerImpl_GetSizeToSave
     257 ******************************************************************************/
     258HRESULT AntiMonikerImpl_GetSizeToSave(IMoniker* iface,ULARGE_INTEGER* pcbSize)
     259{
     260    if (pcbSize==NULL)
     261        return E_POINTER;
     262
     263    pcbSize->LowPart =  sizeof(DWORD);
     264    pcbSize->HighPart = 0;
     265
     266    return S_OK;
     267}
     268
     269/******************************************************************************
    254270 *        AntiMoniker_GetSizeMax
    255271 ******************************************************************************/
     
    259275    TRACE("(%p,%p)\n",iface,pcbSize);
    260276
    261     if (pcbSize!=NULL)
    262         return E_POINTER;
    263 
    264     /* for more details see AntiMonikerImpl_Save coments */
    265    
    266     /* Normaly the sizemax must be the  size of DWORD ! but I tested this function it ususlly return 16 bytes */
    267     /* more than the number of bytes used by AntiMoniker::Save function */
    268     pcbSize->LowPart =  sizeof(DWORD)+16;
    269 
    270     pcbSize->HighPart=0;
    271 
    272     return S_OK;
    273 }
     277    if (pcbSize == NULL)
     278        return E_POINTER;
     279
     280    /* GetSizeMax = SizeToSave + 16 */
     281    AntiMonikerImpl_GetSizeToSave(iface,pcbSize);
     282    pcbSize->LowPart += 16;     //FIXME - 64bit math
     283//    pcbSize->HighPart = 0;
     284
     285    return S_OK;
     286}
     287
    274288
    275289/******************************************************************************
     
    434448
    435449    if (FAILED(res))
    436     return res;
     450        return res;
    437451
    438452    res = IRunningObjectTable_IsRunning(rot,iface);
Note: See TracChangeset for help on using the changeset viewer.