ole32: Rename PROPSET_BLOCK_SIZE to RAW_DIRENTRY_SIZE.
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index 70a1c33..b24bcff 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -1099,7 +1099,7 @@
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 @@
*/
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 @@
* 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 @@
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 @@
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 @@
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 @@
*/
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 @@
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 @@
ULONG index,
const DirEntry* buffer)
{
- BYTE currentProperty[PROPSET_BLOCK_SIZE];
+ BYTE currentProperty[RAW_DIRENTRY_SIZE];
HRESULT writeRes;
UpdateRawDirEntry(currentProperty, buffer);
diff --git a/dlls/ole32/storage32.h b/dlls/ole32/storage32.h
index bed3a07..a2cd6fe 100644
--- a/dlls/ole32/storage32.h
+++ b/dlls/ole32/storage32.h
@@ -77,7 +77,7 @@
#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