Commit 4f492014 authored by Hervé Poussineau's avatar Hervé Poussineau Committed by Alexandre Julliard

mapi32: Use kernel32 functions instead of the ntdll ones.

parent 7027ed45
......@@ -1461,13 +1461,13 @@ static IPropDataItem *IMAPIPROP_AddValue(IPropDataImpl *This,
/* 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 @@ static inline ULONG WINAPI IMAPIProp_fnRelease(LPMAPIPROP iface)
This->lpFree(current->value);
This->lpFree(current);
}
RtlDeleteCriticalSection(&This->cs);
DeleteCriticalSection(&This->cs);
This->lpFree(This);
}
return (ULONG)lRef;
......@@ -2542,7 +2542,7 @@ SCODE WINAPI CreateIProp(LPCIID iid, ALLOCATEBUFFER *lpAlloc,
lpPropData->ulObjAccess = IPROP_READWRITE;
lpPropData->ulNumValues = 0;
list_init(&lpPropData->values);
RtlInitializeCriticalSection(&lpPropData->cs);
InitializeCriticalSection(&lpPropData->cs);
*lppPropData = (LPPROPDATA)lpPropData;
}
return scode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment