Fixed bad register constraint in InterlockedCompareExchange.

This commit is contained in:
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 */
"lock\n\t"
"cmpxchgl %2,(%1)"
:"=r" (ret)
:"=a" (ret)
:"r" (Destination),"r" (Exchange), "0" (Comperand)
:"memory" );
return ret;