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
d21d690a
Commit
d21d690a
authored
Nov 12, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Rename property variables in internal StorageImpl methods.
parent
26acdb3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
storage32.c
dlls/ole32/storage32.c
+26
-26
No files found.
dlls/ole32/storage32.c
View file @
d21d690a
...
...
@@ -2988,7 +2988,7 @@ static void StorageImpl_SaveFileHeader(
*
* This method will read the raw data from a directory entry in the file.
*
* buffer must be
PROPSET_BLOCK
_SIZE bytes long.
* buffer must be
RAW_DIRENTRY
_SIZE bytes long.
*/
HRESULT
StorageImpl_ReadRawDirEntry
(
StorageImpl
*
This
,
ULONG
index
,
BYTE
*
buffer
)
{
...
...
@@ -3014,7 +3014,7 @@ HRESULT StorageImpl_ReadRawDirEntry(StorageImpl *This, ULONG index, BYTE *buffer
*
* This method will write the raw data from a directory entry in the file.
*
* buffer must be
PROPSET_BLOCK
_SIZE bytes long.
* buffer must be
RAW_DIRENTRY
_SIZE bytes long.
*/
HRESULT
StorageImpl_WriteRawDirEntry
(
StorageImpl
*
This
,
ULONG
index
,
const
BYTE
*
buffer
)
{
...
...
@@ -3040,7 +3040,7 @@ HRESULT StorageImpl_WriteRawDirEntry(StorageImpl *This, ULONG index, const BYTE
*
* Update raw directory entry data from the fields in newData.
*
* buffer must be
PROPSET_BLOCK
_SIZE bytes long.
* buffer must be
RAW_DIRENTRY
_SIZE bytes long.
*/
void
UpdateRawDirEntry
(
BYTE
*
buffer
,
const
DirEntry
*
newData
)
{
...
...
@@ -3110,87 +3110,87 @@ void UpdateRawDirEntry(BYTE *buffer, const DirEntry *newData)
}
/******************************************************************************
* Storage32Impl_Read
Propert
y
* Storage32Impl_Read
DirEntr
y
*
* This method will read the specified
property from the property chain
.
* This method will read the specified
directory entry
.
*/
BOOL
StorageImpl_ReadDirEntry
(
StorageImpl
*
This
,
ULONG
index
,
DirEntry
*
buffer
)
{
BYTE
current
Propert
y
[
RAW_DIRENTRY_SIZE
];
BYTE
current
Entr
y
[
RAW_DIRENTRY_SIZE
];
HRESULT
readRes
;
readRes
=
StorageImpl_ReadRawDirEntry
(
This
,
index
,
current
Propert
y
);
readRes
=
StorageImpl_ReadRawDirEntry
(
This
,
index
,
current
Entr
y
);
if
(
SUCCEEDED
(
readRes
))
{
/* replace the name of root entry (often "Root Entry") by the file name */
WCHAR
*
prop
Name
=
(
index
==
This
->
base
.
storageDirEntry
)
?
This
->
filename
:
(
WCHAR
*
)
currentPropert
y
+
OFFSET_PS_NAME
;
WCHAR
*
entry
Name
=
(
index
==
This
->
base
.
storageDirEntry
)
?
This
->
filename
:
(
WCHAR
*
)
currentEntr
y
+
OFFSET_PS_NAME
;
memset
(
buffer
->
name
,
0
,
sizeof
(
buffer
->
name
));
memcpy
(
buffer
->
name
,
prop
Name
,
entry
Name
,
DIRENTRY_NAME_BUFFER_LEN
);
TRACE
(
"storage name: %s
\n
"
,
debugstr_w
(
buffer
->
name
));
memcpy
(
&
buffer
->
stgType
,
current
Propert
y
+
OFFSET_PS_STGTYPE
,
1
);
memcpy
(
&
buffer
->
stgType
,
current
Entr
y
+
OFFSET_PS_STGTYPE
,
1
);
StorageUtl_ReadWord
(
current
Propert
y
,
current
Entr
y
,
OFFSET_PS_NAMELENGTH
,
&
buffer
->
sizeOfNameString
);
StorageUtl_ReadDWord
(
current
Propert
y
,
current
Entr
y
,
OFFSET_PS_LEFTCHILD
,
&
buffer
->
leftChild
);
StorageUtl_ReadDWord
(
current
Propert
y
,
current
Entr
y
,
OFFSET_PS_RIGHTCHILD
,
&
buffer
->
rightChild
);
StorageUtl_ReadDWord
(
current
Propert
y
,
current
Entr
y
,
OFFSET_PS_DIRROOT
,
&
buffer
->
dirRootEntry
);
StorageUtl_ReadGUID
(
current
Propert
y
,
current
Entr
y
,
OFFSET_PS_GUID
,
&
buffer
->
clsid
);
StorageUtl_ReadDWord
(
current
Propert
y
,
current
Entr
y
,
OFFSET_PS_CTIMELOW
,
&
buffer
->
ctime
.
dwLowDateTime
);
StorageUtl_ReadDWord
(
current
Propert
y
,
current
Entr
y
,
OFFSET_PS_CTIMEHIGH
,
&
buffer
->
ctime
.
dwHighDateTime
);
StorageUtl_ReadDWord
(
current
Propert
y
,
current
Entr
y
,
OFFSET_PS_MTIMELOW
,
&
buffer
->
mtime
.
dwLowDateTime
);
StorageUtl_ReadDWord
(
current
Propert
y
,
current
Entr
y
,
OFFSET_PS_MTIMEHIGH
,
&
buffer
->
mtime
.
dwHighDateTime
);
StorageUtl_ReadDWord
(
current
Propert
y
,
current
Entr
y
,
OFFSET_PS_STARTBLOCK
,
&
buffer
->
startingBlock
);
StorageUtl_ReadDWord
(
current
Propert
y
,
current
Entr
y
,
OFFSET_PS_SIZE
,
&
buffer
->
size
.
u
.
LowPart
);
...
...
@@ -3201,19 +3201,19 @@ BOOL StorageImpl_ReadDirEntry(
}
/*********************************************************************
* Write the specified
property into the property chain
* Write the specified
directory entry to the file
*/
BOOL
StorageImpl_WriteDirEntry
(
StorageImpl
*
This
,
ULONG
index
,
const
DirEntry
*
buffer
)
{
BYTE
current
Propert
y
[
RAW_DIRENTRY_SIZE
];
BYTE
current
Entr
y
[
RAW_DIRENTRY_SIZE
];
HRESULT
writeRes
;
UpdateRawDirEntry
(
current
Propert
y
,
buffer
);
UpdateRawDirEntry
(
current
Entr
y
,
buffer
);
writeRes
=
StorageImpl_WriteRawDirEntry
(
This
,
index
,
current
Propert
y
);
writeRes
=
StorageImpl_WriteRawDirEntry
(
This
,
index
,
current
Entr
y
);
return
SUCCEEDED
(
writeRes
)
?
TRUE
:
FALSE
;
}
...
...
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