Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a9ad3fed
Commit
a9ad3fed
authored
Nov 12, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Rename property variables in insertIntoTree.
parent
14647d7c
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 @
a9ad3fed
...
...
@@ -190,7 +190,7 @@ static HRESULT destroyDirEntry(
static
HRESULT
insertIntoTree
(
StorageImpl
*
This
,
ULONG
parentStorageIndex
,
ULONG
new
Propert
yIndex
);
ULONG
new
Entr
yIndex
);
static
LONG
propertyNameCmp
(
const
OLECHAR
*
newProperty
,
...
...
@@ -1253,53 +1253,53 @@ static LONG propertyNameCmp(
static
HRESULT
insertIntoTree
(
StorageImpl
*
This
,
ULONG
parentStorageIndex
,
ULONG
new
Propert
yIndex
)
ULONG
new
Entr
yIndex
)
{
DirEntry
current
Propert
y
;
DirEntry
new
Propert
y
;
DirEntry
current
Entr
y
;
DirEntry
new
Entr
y
;
/*
* Read the inserted property
*/
StorageImpl_ReadDirEntry
(
This
,
new
Propert
yIndex
,
&
new
Propert
y
);
new
Entr
yIndex
,
&
new
Entr
y
);
/*
* Read the root property
*/
StorageImpl_ReadDirEntry
(
This
,
parentStorageIndex
,
&
current
Propert
y
);
&
current
Entr
y
);
if
(
current
Propert
y
.
dirRootEntry
!=
DIRENTRY_NULL
)
if
(
current
Entr
y
.
dirRootEntry
!=
DIRENTRY_NULL
)
{
/*
* The root storage contains some element, therefore, start the research
* for the appropriate location.
*/
BOOL
found
=
0
;
ULONG
current
,
next
,
previous
,
current
Propert
yId
;
ULONG
current
,
next
,
previous
,
current
Entr
yId
;
/*
* Keep the DirEntry sequence number of the storage first property
*/
current
PropertyId
=
currentPropert
y
.
dirRootEntry
;
current
EntryId
=
currentEntr
y
.
dirRootEntry
;
/*
* Read
*/
StorageImpl_ReadDirEntry
(
This
,
current
Propert
y
.
dirRootEntry
,
&
current
Propert
y
);
current
Entr
y
.
dirRootEntry
,
&
current
Entr
y
);
previous
=
current
Propert
y
.
leftChild
;
next
=
current
Propert
y
.
rightChild
;
current
=
current
Propert
yId
;
previous
=
current
Entr
y
.
leftChild
;
next
=
current
Entr
y
.
rightChild
;
current
=
current
Entr
yId
;
while
(
found
==
0
)
{
LONG
diff
=
propertyNameCmp
(
new
Property
.
name
,
currentPropert
y
.
name
);
LONG
diff
=
propertyNameCmp
(
new
Entry
.
name
,
currentEntr
y
.
name
);
if
(
diff
<
0
)
{
...
...
@@ -1307,15 +1307,15 @@ static HRESULT insertIntoTree(
{
StorageImpl_ReadDirEntry
(
This
,
previous
,
&
current
Propert
y
);
&
current
Entr
y
);
current
=
previous
;
}
else
{
current
Property
.
leftChild
=
newPropert
yIndex
;
current
Entry
.
leftChild
=
newEntr
yIndex
;
StorageImpl_WriteDirEntry
(
This
,
current
,
&
current
Propert
y
);
&
current
Entr
y
);
found
=
1
;
}
}
...
...
@@ -1325,15 +1325,15 @@ static HRESULT insertIntoTree(
{
StorageImpl_ReadDirEntry
(
This
,
next
,
&
current
Propert
y
);
&
current
Entr
y
);
current
=
next
;
}
else
{
current
Property
.
rightChild
=
newPropert
yIndex
;
current
Entry
.
rightChild
=
newEntr
yIndex
;
StorageImpl_WriteDirEntry
(
This
,
current
,
&
current
Propert
y
);
&
current
Entr
y
);
found
=
1
;
}
}
...
...
@@ -1346,8 +1346,8 @@ static HRESULT insertIntoTree(
return
STG_E_FILEALREADYEXISTS
;
}
previous
=
current
Propert
y
.
leftChild
;
next
=
current
Propert
y
.
rightChild
;
previous
=
current
Entr
y
.
leftChild
;
next
=
current
Entr
y
.
rightChild
;
}
}
else
...
...
@@ -1355,10 +1355,10 @@ static HRESULT insertIntoTree(
/*
* The root storage is empty, link the new property to its dir property
*/
current
Property
.
dirRootEntry
=
newPropert
yIndex
;
current
Entry
.
dirRootEntry
=
newEntr
yIndex
;
StorageImpl_WriteDirEntry
(
This
,
parentStorageIndex
,
&
current
Propert
y
);
&
current
Entr
y
);
}
return
S_OK
;
...
...
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