Fixed bad register constraint in InterlockedCompareExchange.

oldstable
Ove Kaaven 2000-01-15 22:05:49 +00:00 committed by Alexandre Julliard
parent 6e9a0dd08d
commit 775a0332d6
1 changed files with 1 additions and 1 deletions

View File

@ -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;