~ubuntu-branches/ubuntu/precise/wine1.3/precise

« back to all changes in this revision

Viewing changes to dlls/hlink/link.c

  • Committer: Package Import Robot
  • Author(s): Scott Ritchie
  • Date: 2012-01-17 09:00:34 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120117090034-eyhpp02jawlvrrkc
Tags: 1.3.37-0ubuntu1
* New upstream release
  - Many changes
* Convert to 3.0 source format
* debian/control:
  - Remove pre-multiarch amd64 build depends
  - Remove quilt build depends
  - Recommend proper gecko versions
* debian/rules:
  - Remove manual dh_quilt patch and unpatch
  - No need to uuencode/uudecode anymore with new source format

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
/* known flags */
38
38
#define HLINK_SAVE_ALL (HLINK_SAVE_TARGET_FRAME_PRESENT|HLINK_SAVE_FRIENDLY_PRESENT|HLINK_SAVE_LOCATION_PRESENT|0x04|HLINK_SAVE_MONIKER_IS_ABSOLUTE|HLINK_SAVE_MONIKER_PRESENT)
39
39
 
40
 
static const IHlinkVtbl              hlvt;
41
 
static const IPersistStreamVtbl      psvt;
42
 
static const IDataObjectVtbl         dovt;
43
 
 
44
40
typedef struct
45
41
{
46
42
    IHlink              IHlink_iface;
110
106
    return S_OK;
111
107
}
112
108
 
113
 
HRESULT WINAPI HLink_Constructor(IUnknown *pUnkOuter, REFIID riid,
114
 
        LPVOID *ppv)
115
 
{
116
 
    HlinkImpl * hl;
117
 
 
118
 
    TRACE("unkOut=%p riid=%s\n", pUnkOuter, debugstr_guid(riid));
119
 
    *ppv = NULL;
120
 
 
121
 
    if (pUnkOuter)
122
 
        return CLASS_E_NOAGGREGATION;
123
 
 
124
 
    hl = heap_alloc_zero(sizeof(HlinkImpl));
125
 
    if (!hl)
126
 
        return E_OUTOFMEMORY;
127
 
 
128
 
    hl->ref = 1;
129
 
    hl->IHlink_iface.lpVtbl = &hlvt;
130
 
    hl->IPersistStream_iface.lpVtbl = &psvt;
131
 
    hl->IDataObject_iface.lpVtbl = &dovt;
132
 
 
133
 
    *ppv = hl;
134
 
    return S_OK;
135
 
}
136
 
 
137
109
static HRESULT WINAPI IHlink_fnQueryInterface(IHlink* iface, REFIID riid,
138
110
        LPVOID *ppvObj)
139
111
{
465
437
    HlinkImpl  *This = impl_from_IHlink(iface);
466
438
 
467
439
    TRACE("(%p)->(%p)\n", This, ppwzTargetFrameName);
 
440
 
 
441
    if(!This->TargetFrameName) {
 
442
        *ppwzTargetFrameName = NULL;
 
443
        return S_FALSE;
 
444
    }
 
445
 
468
446
    *ppwzTargetFrameName = hlink_co_strdupW( This->TargetFrameName );
 
447
    if(!*ppwzTargetFrameName)
 
448
        return E_OUTOFMEMORY;
469
449
 
470
450
    return S_OK;
471
451
}
942
922
    IPersistStream_fnSave,
943
923
    IPersistStream_fnGetSizeMax,
944
924
};
 
925
 
 
926
HRESULT HLink_Constructor(IUnknown *pUnkOuter, REFIID riid, void **ppv)
 
927
{
 
928
    HlinkImpl * hl;
 
929
 
 
930
    TRACE("unkOut=%p riid=%s\n", pUnkOuter, debugstr_guid(riid));
 
931
    *ppv = NULL;
 
932
 
 
933
    if (pUnkOuter)
 
934
        return CLASS_E_NOAGGREGATION;
 
935
 
 
936
    hl = heap_alloc_zero(sizeof(HlinkImpl));
 
937
    if (!hl)
 
938
        return E_OUTOFMEMORY;
 
939
 
 
940
    hl->ref = 1;
 
941
    hl->IHlink_iface.lpVtbl = &hlvt;
 
942
    hl->IPersistStream_iface.lpVtbl = &psvt;
 
943
    hl->IDataObject_iface.lpVtbl = &dovt;
 
944
 
 
945
    *ppv = hl;
 
946
    return S_OK;
 
947
}