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
08303391
Commit
08303391
authored
Jul 13, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Simplify storage root entry name initialization.
parent
7b373edb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
storage32.c
dlls/ole32/storage32.c
+7
-9
No files found.
dlls/ole32/storage32.c
View file @
08303391
...
...
@@ -65,8 +65,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(storage);
static
const
BYTE
STORAGE_magic
[
8
]
=
{
0xd0
,
0xcf
,
0x11
,
0xe0
,
0xa1
,
0xb1
,
0x1a
,
0xe1
};
static
const
BYTE
STORAGE_oldmagic
[
8
]
=
{
0xd0
,
0xcf
,
0x11
,
0xe0
,
0x0e
,
0x11
,
0xfc
,
0x0d
};
static
const
char
rootEntryName
[]
=
"Root Entry"
;
/****************************************************************************
* Storage32InternalImpl definitions.
*
...
...
@@ -2874,21 +2872,21 @@ static HRESULT StorageImpl_Construct(
*/
if
(
create
)
{
static
const
WCHAR
rootentryW
[]
=
{
'R'
,
'o'
,
'o'
,
't'
,
' '
,
'E'
,
'n'
,
't'
,
'r'
,
'y'
,
0
};
DirEntry
rootEntry
;
/*
* Initialize the directory table
*/
memset
(
&
rootEntry
,
0
,
sizeof
(
rootEntry
));
MultiByteToWideChar
(
CP_ACP
,
0
,
rootEntryName
,
-
1
,
rootEntry
.
name
,
sizeof
(
rootEntry
.
name
)
/
sizeof
(
WCHAR
)
);
rootEntry
.
sizeOfNameString
=
(
strlenW
(
rootEntry
.
name
)
+
1
)
*
sizeof
(
WCHAR
);
strcpyW
(
rootEntry
.
name
,
rootentryW
);
rootEntry
.
sizeOfNameString
=
sizeof
(
rootentryW
);
rootEntry
.
stgType
=
STGTY_ROOT
;
rootEntry
.
leftChild
=
DIRENTRY_NULL
;
rootEntry
.
rightChild
=
DIRENTRY_NULL
;
rootEntry
.
leftChild
=
DIRENTRY_NULL
;
rootEntry
.
rightChild
=
DIRENTRY_NULL
;
rootEntry
.
dirRootEntry
=
DIRENTRY_NULL
;
rootEntry
.
startingBlock
=
BLOCK_END_OF_CHAIN
;
rootEntry
.
size
.
u
.
HighPart
=
0
;
rootEntry
.
size
.
u
.
LowPart
=
0
;
rootEntry
.
size
.
u
.
HighPart
=
0
;
rootEntry
.
size
.
u
.
LowPart
=
0
;
StorageImpl_WriteDirEntry
(
This
,
0
,
&
rootEntry
);
}
...
...
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