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