Kaydet (Commit) 7113db27 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

GetFileTimeValue can produce a "null" DateTime

Change-Id: I96bf1aa2d889c4d0925d073d1d7b4be47c23b3ac
üst b85470ba
...@@ -108,7 +108,11 @@ sal_uInt32 SFX2_DLLPUBLIC LoadOlePropertySet( ...@@ -108,7 +108,11 @@ sal_uInt32 SFX2_DLLPUBLIC LoadOlePropertySet(
i_xDocProps->setEditingCycles( nRevision ); i_xDocProps->setEditingCycles( nRevision );
} }
if( xGlobSect->GetFileTimeValue( aDateTime, PROPID_EDITTIME ) ) if( xGlobSect->GetFileTimeValue( aDateTime, PROPID_EDITTIME )
&& !(aDateTime.NanoSeconds == 0 && aDateTime.Seconds == 0
&& aDateTime.Minutes == 0 && aDateTime.Hours == 0
&& aDateTime.Day == 0 && aDateTime.Month == 0
&& aDateTime.Year == 0) )
{ {
// subtract offset 1601-01-01 // subtract offset 1601-01-01
aDateTime.Year -= 1601; aDateTime.Year -= 1601;
......
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