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
74d05030
Commit
74d05030
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 PROPERTY_NAME_*_LEN to DIRENTRY_NAME_*_LEN.
parent
86759988
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
storage32.c
dlls/ole32/storage32.c
+6
-6
storage32.h
dlls/ole32/storage32.h
+4
-4
No files found.
dlls/ole32/storage32.c
View file @
74d05030
...
...
@@ -853,7 +853,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream(
newStreamProperty
.
sizeOfNameString
=
(
lstrlenW
(
pwcsName
)
+
1
)
*
sizeof
(
WCHAR
);
if
(
newStreamProperty
.
sizeOfNameString
>
PROPERT
Y_NAME_BUFFER_LEN
)
if
(
newStreamProperty
.
sizeOfNameString
>
DIRENTR
Y_NAME_BUFFER_LEN
)
return
STG_E_INVALIDNAME
;
strcpyW
(
newStreamProperty
.
name
,
pwcsName
);
...
...
@@ -1033,7 +1033,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStorage(
newProperty
.
sizeOfNameString
=
(
lstrlenW
(
pwcsName
)
+
1
)
*
sizeof
(
WCHAR
);
if
(
newProperty
.
sizeOfNameString
>
PROPERT
Y_NAME_BUFFER_LEN
)
if
(
newProperty
.
sizeOfNameString
>
DIRENTR
Y_NAME_BUFFER_LEN
)
{
FIXME
(
"name too long
\n
"
);
return
STG_E_INVALIDNAME
;
...
...
@@ -3052,7 +3052,7 @@ void UpdateRawDirEntry(BYTE *buffer, const DirEntry *newData)
memcpy
(
buffer
+
OFFSET_PS_NAME
,
newData
->
name
,
PROPERT
Y_NAME_BUFFER_LEN
);
DIRENTR
Y_NAME_BUFFER_LEN
);
memcpy
(
buffer
+
OFFSET_PS_STGTYPE
,
&
newData
->
propertyType
,
1
);
...
...
@@ -3137,7 +3137,7 @@ BOOL StorageImpl_ReadDirEntry(
memcpy
(
buffer
->
name
,
propName
,
PROPERT
Y_NAME_BUFFER_LEN
);
DIRENTR
Y_NAME_BUFFER_LEN
);
TRACE
(
"storage name: %s
\n
"
,
debugstr_w
(
buffer
->
name
));
memcpy
(
&
buffer
->
propertyType
,
currentProperty
+
OFFSET_PS_STGTYPE
,
1
);
...
...
@@ -5840,8 +5840,8 @@ HRESULT WINAPI StgOpenStorage(
/* prepare the file name string given in lieu of the root property name */
GetFullPathNameW
(
pwcsName
,
MAX_PATH
,
fullname
,
NULL
);
memcpy
(
newStorage
->
filename
,
fullname
,
PROPERT
Y_NAME_BUFFER_LEN
);
newStorage
->
filename
[
PROPERT
Y_NAME_BUFFER_LEN
-
1
]
=
'\0'
;
memcpy
(
newStorage
->
filename
,
fullname
,
DIRENTR
Y_NAME_BUFFER_LEN
);
newStorage
->
filename
[
DIRENTR
Y_NAME_BUFFER_LEN
-
1
]
=
'\0'
;
/*
* Get an "out" pointer for the caller.
...
...
dlls/ole32/storage32.h
View file @
74d05030
...
...
@@ -74,8 +74,8 @@ static const ULONG BLOCK_END_OF_CHAIN = 0xFFFFFFFE;
static
const
ULONG
BLOCK_UNUSED
=
0xFFFFFFFF
;
static
const
ULONG
DIRENTRY_NULL
=
0xFFFFFFFF
;
#define
PROPERT
Y_NAME_MAX_LEN 0x20
#define
PROPERT
Y_NAME_BUFFER_LEN 0x40
#define
DIRENTR
Y_NAME_MAX_LEN 0x20
#define
DIRENTR
Y_NAME_BUFFER_LEN 0x40
#define PROPSET_BLOCK_SIZE 0x00000080
...
...
@@ -127,7 +127,7 @@ typedef struct StgStreamImpl StgStreamImpl;
*/
struct
DirEntry
{
WCHAR
name
[
PROPERT
Y_NAME_MAX_LEN
];
WCHAR
name
[
DIRENTR
Y_NAME_MAX_LEN
];
WORD
sizeOfNameString
;
BYTE
propertyType
;
ULONG
leftChild
;
...
...
@@ -255,7 +255,7 @@ struct StorageImpl
The behaviour of STGM_SIMPLE depends on this */
/* FIXME: should this be in Storage32BaseImpl ? */
WCHAR
filename
[
PROPERT
Y_NAME_BUFFER_LEN
];
WCHAR
filename
[
DIRENTR
Y_NAME_BUFFER_LEN
];
/*
* File header
...
...
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