Commit 36241ced authored by Alexandre Julliard's avatar Alexandre Julliard

Added memory constraint to avoid miscompilation of the unaligned_mmap

function (with help from Paul Streitman).
parent 66f17254
......@@ -912,7 +912,8 @@ static void *unaligned_mmap( void *addr, size_t length, unsigned int prot,
"popl %%ebx"
: "=a" (ret)
: "0" (90), /* SYS_mmap */
"g" (&args) );
"g" (&args)
: "memory" );
if (ret < 0 && ret > -4096)
{
errno = -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