Ignore:
Timestamp:
Nov 27, 2010, 11:27:43 AM (15 years ago)
Author:
dmik
Message:

Get rid of dd_obj_base.h which duplicates obj_base.h creating unnecessary mess (symbol/define duplication) and conflicts when both the DDarw and other COM-related headers are included.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/ddmain.cpp

    r9459 r21479  
    2222#include <memory.h>
    2323#include <stdio.h>
    24 #define INITGUID
    25 #define ICOM_CINTERFACE 1
     24
    2625#define CINTERFACE
    27 
    2826#include "ddraw2d.h"
    2927#include "winerror.h"
     
    5048  else
    5149  {
    52     newdraw->Vtbl.AddRef((IDirectDraw2 *)newdraw);
     50    newdraw->Vtbl.fnAddRef((IDirectDraw2 *)newdraw);
    5351
    5452    rc = newdraw->GetLastError();
     
    217215  dprintf(("DDRAW:DDCF_CreateInstance"));
    218216  if( lpGUID &&
    219       ( (*lpGUID == IID_IDirectDraw ) ||
    220         (*lpGUID == IID_IDirectDraw2) ||
    221         (*lpGUID == IID_IDirectDraw4))
     217      ( IsEqualGUID(lpGUID, &IID_IDirectDraw) ||
     218        IsEqualGUID(lpGUID, &IID_IDirectDraw2) ||
     219        IsEqualGUID(lpGUID, &IID_IDirectDraw4))
    222220    )
    223221  {
     
    267265  {
    268266    *ppv = (LPVOID)&DDRAW_CF;
    269     DDRAW_CF.lpvtbl->AddRef((IClassFactory*)&DDRAW_CF);
     267    DDRAW_CF.lpvtbl->fnAddRef((IClassFactory*)&DDRAW_CF);
    270268    return S_OK;
    271269  }
Note: See TracChangeset for help on using the changeset viewer.