Bugs item #231820, was updated on 2001-02-09 22:23
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=102435&aid=231820&group_id=2435
Category: w32api
Group: Feature requests
Status: Open
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: InterlockedCompareExchange incorrect prototype
Initial Comment:
The winbase.h include file contains the following incorrect prototype:
PVOID WINAPI InterlockedCompareExchange(PVOID*,PVOID,PVOID);
It should be:
PVOID WINAPI InterlockedCompareExchangePointer(PVOID*,PVOID,PVOID);
and the following prototype is missing:
LONG WINAPI InterlockedCompareExchange(LPLONG,LONG,LONG);
(or vice versa depending on how you look at it).
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-04-05 09:48
Message:
Logged In: NO
This depends on the version of the SDK that you use. The original definition is
PVOID WINAPI InterlockedCompareExchange(PVOID*,PVOID,PVOID). For support of 64-Bit pointers,
Microsoft has splittet this function into two functions.
Older programms need the current definition, newer the requested.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=102435&aid=231820&group_id=2435
|