Fixed bad register constraint in InterlockedCompareExchange.
This commit is contained in:
parent
6e9a0dd08d
commit
775a0332d6
|
@ -151,7 +151,7 @@ PVOID WINAPI InterlockedCompareExchange(
|
|||
__asm__ ( /* lock for SMP systems */
|
||||
"lock\n\t"
|
||||
"cmpxchgl %2,(%1)"
|
||||
:"=r" (ret)
|
||||
:"=a" (ret)
|
||||
:"r" (Destination),"r" (Exchange), "0" (Comperand)
|
||||
:"memory" );
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue