Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
224ddb50
Commit
224ddb50
authored
Oct 23, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Clarify the timestamp fields in StgProperty.
According to the MS spec, these are FILETIME structures containing creation and modification times.
parent
70d43eb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
36 deletions
+28
-36
storage32.c
dlls/ole32/storage32.c
+22
-28
storage32.h
dlls/ole32/storage32.h
+6
-8
No files found.
dlls/ole32/storage32.c
View file @
224ddb50
...
...
@@ -773,10 +773,8 @@ static HRESULT WINAPI StorageBaseImpl_RenameElement(
renamedProperty
.
dirProperty
=
currentProperty
.
dirProperty
;
/* call CoFileTime to get the current time
renamedProperty.timeStampS1
renamedProperty.timeStampD1
renamedProperty.timeStampS2
renamedProperty.timeStampD2
renamedProperty.ctime
renamedProperty.mtime
renamedProperty.propertyUniqueID
*/
...
...
@@ -967,10 +965,8 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream(
newStreamProperty
.
dirProperty
=
PROPERTY_NULL
;
/* call CoFileTime to get the current time
newStreamProperty.timeStampS1
newStreamProperty.timeStampD1
newStreamProperty.timeStampS2
newStreamProperty.timeStampD2
newStreamProperty.ctime
newStreamProperty.mtime
*/
/* newStreamProperty.propertyUniqueID */
...
...
@@ -1167,10 +1163,8 @@ static HRESULT WINAPI StorageImpl_CreateStorage(
newProperty
.
dirProperty
=
PROPERTY_NULL
;
/* call CoFileTime to get the current time
newProperty.timeStampS1
newProperty.timeStampD1
newProperty.timeStampS2
newProperty.timeStampD2
newProperty.ctime
newProperty.mtime
*/
/* newStorageProperty.propertyUniqueID */
...
...
@@ -3234,23 +3228,23 @@ BOOL StorageImpl_ReadProperty(
StorageUtl_ReadDWord
(
currentProperty
,
OFFSET_PS_
TSS1
,
&
buffer
->
timeStampS1
);
OFFSET_PS_
CTIMELOW
,
&
buffer
->
ctime
.
dwLowDateTime
);
StorageUtl_ReadDWord
(
currentProperty
,
OFFSET_PS_
TSD1
,
&
buffer
->
timeStampD1
);
OFFSET_PS_
CTIMEHIGH
,
&
buffer
->
ctime
.
dwHighDateTime
);
StorageUtl_ReadDWord
(
currentProperty
,
OFFSET_PS_
TSS2
,
&
buffer
->
timeStampS2
);
OFFSET_PS_
MTIMELOW
,
&
buffer
->
mtime
.
dwLowDateTime
);
StorageUtl_ReadDWord
(
currentProperty
,
OFFSET_PS_
TSD2
,
&
buffer
->
timeStampD2
);
OFFSET_PS_
MTIMEHIGH
,
&
buffer
->
mtime
.
dwHighDateTime
);
StorageUtl_ReadDWord
(
currentProperty
,
...
...
@@ -3320,23 +3314,23 @@ BOOL StorageImpl_WriteProperty(
StorageUtl_WriteDWord
(
currentProperty
,
OFFSET_PS_
TSS1
,
buffer
->
timeStampS1
);
OFFSET_PS_
CTIMELOW
,
buffer
->
ctime
.
dwLowDateTime
);
StorageUtl_WriteDWord
(
currentProperty
,
OFFSET_PS_
TSD1
,
buffer
->
timeStampD1
);
OFFSET_PS_
CTIMEHIGH
,
buffer
->
ctime
.
dwHighDateTime
);
StorageUtl_WriteDWord
(
currentProperty
,
OFFSET_PS_
TSS2
,
buffer
->
timeStampS2
);
OFFSET_PS_
MTIMELOW
,
buffer
->
mtime
.
dwLowDateTime
);
StorageUtl_WriteDWord
(
currentProperty
,
OFFSET_PS_
TSD2
,
buffer
->
timeStampD2
);
OFFSET_PS_
MTIMEHIGH
,
buffer
->
ctime
.
dwHighDateTime
);
StorageUtl_WriteDWord
(
currentProperty
,
...
...
dlls/ole32/storage32.h
View file @
224ddb50
...
...
@@ -58,10 +58,10 @@ static const ULONG OFFSET_PS_PREVIOUSPROP = 0x00000044;
static
const
ULONG
OFFSET_PS_NEXTPROP
=
0x00000048
;
static
const
ULONG
OFFSET_PS_DIRPROP
=
0x0000004C
;
static
const
ULONG
OFFSET_PS_GUID
=
0x00000050
;
static
const
ULONG
OFFSET_PS_
TSS1
=
0x00000064
;
static
const
ULONG
OFFSET_PS_
TSD1
=
0x00000068
;
static
const
ULONG
OFFSET_PS_
TSS2
=
0x0000006C
;
static
const
ULONG
OFFSET_PS_
TSD2
=
0x00000070
;
static
const
ULONG
OFFSET_PS_
CTIMELOW
=
0x00000064
;
static
const
ULONG
OFFSET_PS_
CTIMEHIGH
=
0x00000068
;
static
const
ULONG
OFFSET_PS_
MTIMELOW
=
0x0000006C
;
static
const
ULONG
OFFSET_PS_
MTIMEHIGH
=
0x00000070
;
static
const
ULONG
OFFSET_PS_STARTBLOCK
=
0x00000074
;
static
const
ULONG
OFFSET_PS_SIZE
=
0x00000078
;
static
const
WORD
DEF_BIG_BLOCK_SIZE_BITS
=
0x0009
;
...
...
@@ -136,10 +136,8 @@ struct StgProperty
ULONG
nextProperty
;
ULONG
dirProperty
;
GUID
propertyUniqueID
;
ULONG
timeStampS1
;
ULONG
timeStampD1
;
ULONG
timeStampS2
;
ULONG
timeStampD2
;
FILETIME
ctime
;
FILETIME
mtime
;
ULONG
startingBlock
;
ULARGE_INTEGER
size
;
};
...
...
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