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
42e8dfa2
Commit
42e8dfa2
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 propertyNameCmp to entryNameCmp.
parent
a9ad3fed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
storage32.c
dlls/ole32/storage32.c
+14
-14
No files found.
dlls/ole32/storage32.c
View file @
42e8dfa2
...
@@ -192,9 +192,9 @@ static HRESULT insertIntoTree(
...
@@ -192,9 +192,9 @@ static HRESULT insertIntoTree(
ULONG
parentStorageIndex
,
ULONG
parentStorageIndex
,
ULONG
newEntryIndex
);
ULONG
newEntryIndex
);
static
LONG
propert
yNameCmp
(
static
LONG
entr
yNameCmp
(
const
OLECHAR
*
n
ewProperty
,
const
OLECHAR
*
n
ame1
,
const
OLECHAR
*
currentProperty
);
const
OLECHAR
*
name2
);
static
ULONG
findElement
(
static
ULONG
findElement
(
StorageImpl
*
storage
,
StorageImpl
*
storage
,
...
@@ -1223,22 +1223,22 @@ static HRESULT destroyDirEntry(
...
@@ -1223,22 +1223,22 @@ static HRESULT destroyDirEntry(
* Case insensitive comparison of DirEntry.name by first considering
* Case insensitive comparison of DirEntry.name by first considering
* their size.
* their size.
*
*
* Returns <0 when n
ewProperty < currentProperty
* Returns <0 when n
ame1 < name2
* >0 when n
ewProperty > currentProperty
* >0 when n
ame1 > name2
* 0 when n
ewProperty == currentProperty
* 0 when n
ame1 == name2
*/
*/
static
LONG
propert
yNameCmp
(
static
LONG
entr
yNameCmp
(
const
OLECHAR
*
n
ewProperty
,
const
OLECHAR
*
n
ame1
,
const
OLECHAR
*
currentProperty
)
const
OLECHAR
*
name2
)
{
{
LONG
diff
=
lstrlenW
(
n
ewProperty
)
-
lstrlenW
(
currentProperty
);
LONG
diff
=
lstrlenW
(
n
ame1
)
-
lstrlenW
(
name2
);
if
(
diff
==
0
)
if
(
diff
==
0
)
{
{
/*
/*
* We compare the string themselves only when they are of the same length
* We compare the string themselves only when they are of the same length
*/
*/
diff
=
lstrcmpiW
(
n
ewProperty
,
currentProperty
);
diff
=
lstrcmpiW
(
n
ame1
,
name2
);
}
}
return
diff
;
return
diff
;
...
@@ -1299,7 +1299,7 @@ static HRESULT insertIntoTree(
...
@@ -1299,7 +1299,7 @@ static HRESULT insertIntoTree(
while
(
found
==
0
)
while
(
found
==
0
)
{
{
LONG
diff
=
propert
yNameCmp
(
newEntry
.
name
,
currentEntry
.
name
);
LONG
diff
=
entr
yNameCmp
(
newEntry
.
name
,
currentEntry
.
name
);
if
(
diff
<
0
)
if
(
diff
<
0
)
{
{
...
@@ -1386,7 +1386,7 @@ static ULONG findElement(StorageImpl *storage, ULONG storageEntry,
...
@@ -1386,7 +1386,7 @@ static ULONG findElement(StorageImpl *storage, ULONG storageEntry,
StorageImpl_ReadDirEntry
(
storage
,
currentEntry
,
data
);
StorageImpl_ReadDirEntry
(
storage
,
currentEntry
,
data
);
cmp
=
propert
yNameCmp
(
name
,
data
->
name
);
cmp
=
entr
yNameCmp
(
name
,
data
->
name
);
if
(
cmp
==
0
)
if
(
cmp
==
0
)
/* found it */
/* found it */
...
@@ -1432,7 +1432,7 @@ static HRESULT findTreeParent(StorageImpl *storage, ULONG storageEntry,
...
@@ -1432,7 +1432,7 @@ static HRESULT findTreeParent(StorageImpl *storage, ULONG storageEntry,
StorageImpl_ReadDirEntry
(
storage
,
childEntry
,
&
childData
);
StorageImpl_ReadDirEntry
(
storage
,
childEntry
,
&
childData
);
cmp
=
propert
yNameCmp
(
childName
,
childData
.
name
);
cmp
=
entr
yNameCmp
(
childName
,
childData
.
name
);
if
(
cmp
==
0
)
if
(
cmp
==
0
)
/* found it */
/* found it */
...
...
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