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
8a8471a7
Commit
8a8471a7
authored
Nov 11, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Rename PROPSET_BLOCK_SIZE to RAW_DIRENTRY_SIZE.
parent
74d05030
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
storage32.c
dlls/ole32/storage32.c
+13
-13
storage32.h
dlls/ole32/storage32.h
+1
-1
No files found.
dlls/ole32/storage32.c
View file @
8a8471a7
...
...
@@ -1099,7 +1099,7 @@ static HRESULT createDirEntry(
ULONG
currentPropertyIndex
=
0
;
ULONG
newPropertyIndex
=
DIRENTRY_NULL
;
HRESULT
hr
=
S_OK
;
BYTE
currentData
[
PROPSET_BLOCK
_SIZE
];
BYTE
currentData
[
RAW_DIRENTRY
_SIZE
];
WORD
sizeOfNameString
;
do
...
...
@@ -1139,7 +1139,7 @@ static HRESULT createDirEntry(
*/
if
(
FAILED
(
hr
))
{
BYTE
emptyData
[
PROPSET_BLOCK
_SIZE
];
BYTE
emptyData
[
RAW_DIRENTRY
_SIZE
];
ULARGE_INTEGER
newSize
;
ULONG
propertyIndex
;
ULONG
lastProperty
=
0
;
...
...
@@ -1166,12 +1166,12 @@ static HRESULT createDirEntry(
* memset the empty property in order to initialize the unused newly
* created property
*/
memset
(
&
emptyData
,
0
,
PROPSET_BLOCK
_SIZE
);
memset
(
&
emptyData
,
0
,
RAW_DIRENTRY
_SIZE
);
/*
* initialize them
*/
lastProperty
=
storage
->
bigBlockSize
/
PROPSET_BLOCK
_SIZE
*
blockCount
;
lastProperty
=
storage
->
bigBlockSize
/
RAW_DIRENTRY
_SIZE
*
blockCount
;
for
(
propertyIndex
=
newPropertyIndex
+
1
;
...
...
@@ -1206,9 +1206,9 @@ static HRESULT destroyDirEntry(
ULONG
index
)
{
HRESULT
hr
;
BYTE
emptyData
[
PROPSET_BLOCK
_SIZE
];
BYTE
emptyData
[
RAW_DIRENTRY
_SIZE
];
memset
(
&
emptyData
,
0
,
PROPSET_BLOCK
_SIZE
);
memset
(
&
emptyData
,
0
,
RAW_DIRENTRY
_SIZE
);
hr
=
StorageImpl_WriteRawDirEntry
(
storage
,
index
,
emptyData
);
...
...
@@ -3000,12 +3000,12 @@ HRESULT StorageImpl_ReadRawDirEntry(StorageImpl *This, ULONG index, BYTE *buffer
ULONG
bytesRead
;
offset
.
u
.
HighPart
=
0
;
offset
.
u
.
LowPart
=
index
*
PROPSET_BLOCK
_SIZE
;
offset
.
u
.
LowPart
=
index
*
RAW_DIRENTRY
_SIZE
;
hr
=
BlockChainStream_ReadAt
(
This
->
rootBlockChain
,
offset
,
PROPSET_BLOCK
_SIZE
,
RAW_DIRENTRY
_SIZE
,
buffer
,
&
bytesRead
);
...
...
@@ -3026,12 +3026,12 @@ HRESULT StorageImpl_WriteRawDirEntry(StorageImpl *This, ULONG index, const BYTE
ULONG
bytesRead
;
offset
.
u
.
HighPart
=
0
;
offset
.
u
.
LowPart
=
index
*
PROPSET_BLOCK
_SIZE
;
offset
.
u
.
LowPart
=
index
*
RAW_DIRENTRY
_SIZE
;
hr
=
BlockChainStream_WriteAt
(
This
->
rootBlockChain
,
offset
,
PROPSET_BLOCK
_SIZE
,
RAW_DIRENTRY
_SIZE
,
buffer
,
&
bytesRead
);
...
...
@@ -3047,7 +3047,7 @@ HRESULT StorageImpl_WriteRawDirEntry(StorageImpl *This, ULONG index, const BYTE
*/
void
UpdateRawDirEntry
(
BYTE
*
buffer
,
const
DirEntry
*
newData
)
{
memset
(
buffer
,
0
,
PROPSET_BLOCK
_SIZE
);
memset
(
buffer
,
0
,
RAW_DIRENTRY
_SIZE
);
memcpy
(
buffer
+
OFFSET_PS_NAME
,
...
...
@@ -3122,7 +3122,7 @@ BOOL StorageImpl_ReadDirEntry(
ULONG
index
,
DirEntry
*
buffer
)
{
BYTE
currentProperty
[
PROPSET_BLOCK
_SIZE
];
BYTE
currentProperty
[
RAW_DIRENTRY
_SIZE
];
HRESULT
readRes
;
readRes
=
StorageImpl_ReadRawDirEntry
(
This
,
index
,
currentProperty
);
...
...
@@ -3211,7 +3211,7 @@ BOOL StorageImpl_WriteDirEntry(
ULONG
index
,
const
DirEntry
*
buffer
)
{
BYTE
currentProperty
[
PROPSET_BLOCK
_SIZE
];
BYTE
currentProperty
[
RAW_DIRENTRY
_SIZE
];
HRESULT
writeRes
;
UpdateRawDirEntry
(
currentProperty
,
buffer
);
...
...
dlls/ole32/storage32.h
View file @
8a8471a7
...
...
@@ -77,7 +77,7 @@ static const ULONG DIRENTRY_NULL = 0xFFFFFFFF;
#define DIRENTRY_NAME_MAX_LEN 0x20
#define DIRENTRY_NAME_BUFFER_LEN 0x40
#define
PROPSET_BLOCK
_SIZE 0x00000080
#define
RAW_DIRENTRY
_SIZE 0x00000080
/*
* Property type of relation
...
...
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