Vincent Povirk : ole32: Rename propertyNameCmp to entryNameCmp.

Alexandre Julliard julliard at winehq.org
Mon Nov 16 11:43:52 CST 2009


Module: wine
Branch: master
Commit: 42e8dfa2cb9417efbc0bee611ea09a0de9dccf77
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=42e8dfa2cb9417efbc0bee611ea09a0de9dccf77

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Thu Nov 12 13:55:49 2009 -0600

ole32: Rename propertyNameCmp to entryNameCmp.

---

 dlls/ole32/storage32.c |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index 0cc5413..9040a97 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -192,9 +192,9 @@ static HRESULT insertIntoTree(
   ULONG         parentStorageIndex,
   ULONG         newEntryIndex);
 
-static LONG propertyNameCmp(
-    const OLECHAR *newProperty,
-    const OLECHAR *currentProperty);
+static LONG entryNameCmp(
+    const OLECHAR *name1,
+    const OLECHAR *name2);
 
 static ULONG findElement(
     StorageImpl *storage,
@@ -1223,22 +1223,22 @@ static HRESULT destroyDirEntry(
  * Case insensitive comparison of DirEntry.name by first considering
  * their size.
  *
- * Returns <0 when newProperty < currentProperty
- *         >0 when newProperty > currentProperty
- *          0 when newProperty == currentProperty
+ * Returns <0 when name1 < name2
+ *         >0 when name1 > name2
+ *          0 when name1 == name2
  */
-static LONG propertyNameCmp(
-    const OLECHAR *newProperty,
-    const OLECHAR *currentProperty)
+static LONG entryNameCmp(
+    const OLECHAR *name1,
+    const OLECHAR *name2)
 {
-  LONG diff      = lstrlenW(newProperty) - lstrlenW(currentProperty);
+  LONG diff      = lstrlenW(name1) - lstrlenW(name2);
 
   if (diff == 0)
   {
     /*
      * We compare the string themselves only when they are of the same length
      */
-    diff = lstrcmpiW( newProperty, currentProperty);
+    diff = lstrcmpiW( name1, name2);
   }
 
   return diff;
@@ -1299,7 +1299,7 @@ static HRESULT insertIntoTree(
 
     while (found == 0)
     {
-      LONG diff = propertyNameCmp( newEntry.name, currentEntry.name);
+      LONG diff = entryNameCmp( newEntry.name, currentEntry.name);
 
       if (diff < 0)
       {
@@ -1386,7 +1386,7 @@ static ULONG findElement(StorageImpl *storage, ULONG storageEntry,
 
     StorageImpl_ReadDirEntry(storage, currentEntry, data);
 
-    cmp = propertyNameCmp(name, data->name);
+    cmp = entryNameCmp(name, data->name);
 
     if (cmp == 0)
       /* found it */
@@ -1432,7 +1432,7 @@ static HRESULT findTreeParent(StorageImpl *storage, ULONG storageEntry,
 
     StorageImpl_ReadDirEntry(storage, childEntry, &childData);
 
-    cmp = propertyNameCmp(childName, childData.name);
+    cmp = entryNameCmp(childName, childData.name);
 
     if (cmp == 0)
       /* found it */




More information about the wine-cvs mailing list