[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    mapi32: Use kernel32 functions instead of the ntdll ones
From:       Hervé_Poussineau <hpoussin () reactos ! org>
Date:       2006-06-30 19:34:09
Message-ID: 20060630193919.7F213549B1 () smtp4-g19 ! free ! fr
[Download RAW message or body]

mapi32: Use kernel32 functions instead of the ntdll ones

["mapi32.diff" (application/octet-stream)]

cvs diff: Diffing wine/dlls/mapi32
Index: wine/dlls/mapi32/prop.c
===================================================================
RCS file: /home/wine/wine/dlls/mapi32/prop.c,v
retrieving revision 1.12
diff -u -r1.12 prop.c
--- wine/dlls/mapi32/prop.c     23 May 2006 12:48:09 -0000      1.12
+++ wine/dlls/mapi32/prop.c     30 Jun 2006 19:35:03 -0000
@@ -1461,13 +1461,13 @@
 /* Internal - Lock an IPropData object */
 static inline void IMAPIPROP_Lock(IPropDataImpl *This)
 {
-    RtlEnterCriticalSection(&This->cs);
+    EnterCriticalSection(&This->cs);
 }

 /* Internal - Unlock an IPropData object */
 static inline void IMAPIPROP_Unlock(IPropDataImpl *This)
 {
-    RtlLeaveCriticalSection(&This->cs);
+    LeaveCriticalSection(&This->cs);
 }

 /* This one seems to be missing from mapidefs.h */
@@ -1553,7 +1553,7 @@
             This->lpFree(current->value);
             This->lpFree(current);
         }
-        RtlDeleteCriticalSection(&This->cs);
+        DeleteCriticalSection(&This->cs);
         This->lpFree(This);
     }
     return (ULONG)lRef;
@@ -2542,7 +2542,7 @@
         lpPropData->ulObjAccess = IPROP_READWRITE;
         lpPropData->ulNumValues = 0;
         list_init(&lpPropData->values);
-        RtlInitializeCriticalSection(&lpPropData->cs);
+        InitializeCriticalSection(&lpPropData->cs);
         *lppPropData = (LPPROPDATA)lpPropData;
     }
     return scode;




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic