Commit 54f30df9 authored by Esme Povirk's avatar Esme Povirk Committed by Alexandre Julliard

diasymreader: Implement SymWriter_GetSignatureAge.

parent 6a0262b2
......@@ -17,6 +17,7 @@
*/
#include <stdarg.h>
#include <time.h>
#define COBJMACROS
......@@ -39,6 +40,7 @@ typedef struct SymWriter {
LONG ref;
CRITICAL_SECTION lock;
GUID pdb_guid;
DWORD pdb_timestamp;
DWORD pdb_age;
WCHAR pdb_filename[MAX_PATH];
} SymWriter;
......@@ -240,6 +242,8 @@ static HRESULT WINAPI SymWriter_Initialize(ISymUnmanagedWriter5 *iface, IUnknown
if (filename)
wcsncpy_s(This->pdb_filename, MAX_PATH, filename, _TRUNCATE);
This->pdb_timestamp = _time32(NULL);
LeaveCriticalSection(&This->lock);
return S_OK;
......@@ -465,8 +469,20 @@ static HRESULT WINAPI SymWriter_GetPath(IPdbWriter *iface, DWORD ccData, DWORD *
static HRESULT WINAPI SymWriter_GetSignatureAge(IPdbWriter *iface, DWORD *timestamp, DWORD *age)
{
FIXME("(%p,%p,%p)\n", iface, timestamp, age);
return E_NOTIMPL;
SymWriter *This = impl_from_IPdbWriter(iface);
TRACE("(%p,%p,%p)\n", This, timestamp, age);
EnterCriticalSection(&This->lock);
if (timestamp)
*timestamp = This->pdb_timestamp;
if (age)
*age = This->pdb_age;
LeaveCriticalSection(&This->lock);
return S_OK;
}
static const IPdbWriterVtbl SymWriter_PdbWriter_Vtbl = {
......
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