Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0de459d0
Commit
0de459d0
authored
Feb 08, 2022
by
Esme Povirk
Committed by
Alexandre Julliard
Feb 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diasymreader: Stub ISymUnmanagedDocumentWriter.
Signed-off-by:
Esme Povirk
<
esme@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6c80346d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
95 additions
and
1 deletion
+95
-1
writer.c
dlls/diasymreader/writer.c
+95
-1
No files found.
dlls/diasymreader/writer.c
View file @
0de459d0
...
...
@@ -45,6 +45,11 @@ typedef struct SymWriter {
WCHAR
pdb_filename
[
MAX_PATH
];
}
SymWriter
;
typedef
struct
SymDocumentWriter
{
ISymUnmanagedDocumentWriter
iface
;
LONG
ref
;
}
SymDocumentWriter
;
static
inline
SymWriter
*
impl_from_ISymUnmanagedWriter5
(
ISymUnmanagedWriter5
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
SymWriter
,
iface
);
...
...
@@ -55,6 +60,81 @@ static inline SymWriter *impl_from_IPdbWriter(IPdbWriter *iface)
return
CONTAINING_RECORD
(
iface
,
SymWriter
,
IPdbWriter_iface
);
}
static
inline
SymDocumentWriter
*
impl_from_ISymUnmanagedDocumentWriter
(
ISymUnmanagedDocumentWriter
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
SymDocumentWriter
,
iface
);
}
static
HRESULT
WINAPI
SymDocumentWriter_QueryInterface
(
ISymUnmanagedDocumentWriter
*
iface
,
REFIID
iid
,
void
**
ppv
)
{
SymDocumentWriter
*
This
=
impl_from_ISymUnmanagedDocumentWriter
(
iface
);
TRACE
(
"(%p,%s,%p)
\n
"
,
iface
,
debugstr_guid
(
iid
),
ppv
);
if
(
IsEqualIID
(
&
IID_IUnknown
,
iid
)
||
IsEqualIID
(
&
IID_ISymUnmanagedDocumentWriter
,
iid
))
{
*
ppv
=
&
This
->
iface
;
}
else
{
WARN
(
"unknown interface %s
\n
"
,
debugstr_guid
(
iid
));
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
ULONG
WINAPI
SymDocumentWriter_AddRef
(
ISymUnmanagedDocumentWriter
*
iface
)
{
SymDocumentWriter
*
This
=
impl_from_ISymUnmanagedDocumentWriter
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) refcount=%lu
\n
"
,
iface
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
SymDocumentWriter_Release
(
ISymUnmanagedDocumentWriter
*
iface
)
{
SymDocumentWriter
*
This
=
impl_from_ISymUnmanagedDocumentWriter
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) refcount=%lu
\n
"
,
iface
,
ref
);
if
(
ref
==
0
)
{
heap_free
(
This
);
}
return
ref
;
}
static
HRESULT
WINAPI
SymDocumentWriter_SetSource
(
ISymUnmanagedDocumentWriter
*
iface
,
ULONG32
sourceSize
,
BYTE
source
[])
{
FIXME
(
"(%p,%u,%p)
\n
"
,
iface
,
sourceSize
,
source
);
return
S_OK
;
}
static
HRESULT
WINAPI
SymDocumentWriter_SetChecksum
(
ISymUnmanagedDocumentWriter
*
iface
,
GUID
algorithmID
,
ULONG32
checkSumSize
,
BYTE
checkSum
[])
{
FIXME
(
"(%p,%s,%u,%p)
\n
"
,
iface
,
debugstr_guid
(
&
algorithmID
),
checkSumSize
,
checkSum
);
return
S_OK
;
}
static
const
ISymUnmanagedDocumentWriterVtbl
SymDocumentWriter_Vtbl
=
{
SymDocumentWriter_QueryInterface
,
SymDocumentWriter_AddRef
,
SymDocumentWriter_Release
,
SymDocumentWriter_SetSource
,
SymDocumentWriter_SetChecksum
};
static
HRESULT
WINAPI
SymWriter_QueryInterface
(
ISymUnmanagedWriter5
*
iface
,
REFIID
iid
,
void
**
ppv
)
{
...
...
@@ -117,9 +197,23 @@ static HRESULT WINAPI SymWriter_DefineDocument(ISymUnmanagedWriter5 *iface, cons
const
GUID
*
language
,
const
GUID
*
languageVendor
,
const
GUID
*
documentType
,
ISymUnmanagedDocumentWriter
**
pRetVal
)
{
SymDocumentWriter
*
result
;
FIXME
(
"(%p,%s,%s,%s,%s,%p)
\n
"
,
iface
,
debugstr_w
(
url
),
debugstr_guid
(
language
),
debugstr_guid
(
languageVendor
),
debugstr_guid
(
documentType
),
pRetVal
);
return
E_NOTIMPL
;
if
(
!
pRetVal
)
return
E_POINTER
;
result
=
heap_alloc
(
sizeof
(
*
result
));
if
(
!
result
)
return
E_OUTOFMEMORY
;
result
->
iface
.
lpVtbl
=
&
SymDocumentWriter_Vtbl
;
result
->
ref
=
1
;
*
pRetVal
=
&
result
->
iface
;
return
S_OK
;
}
static
HRESULT
WINAPI
SymWriter_SetUserEntryPoint
(
ISymUnmanagedWriter5
*
iface
,
mdMethodDef
entryMethod
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment