Commit 775a0332 authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Fixed bad register constraint in InterlockedCompareExchange.

parent 6e9a0dd0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment