Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-06-07 03:53:45 +0400
committerChristopher Faylor <me@cgf.cx>2002-06-07 03:53:45 +0400
commit46b941fcf952efabe7bc37d1ac5e2520dd6c55a9 (patch)
treec99f64ede724e69fa9d431a8f5849ed1fc696090 /winsup/cygwin/autoload.cc
parentc4e6ff484c1e6a57304d14ba46852054e98e9158 (diff)
* autoload.cc (noload): Correctly save argument count register.
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r--winsup/cygwin/autoload.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index 9af5aeaeb..7776896e3 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -122,9 +122,10 @@ noload: \n\
jz 1f # Nope. \n\
decl %eax # Yes. This is the # of bytes + 1 \n\
popl %edx # Caller's caller \n\
- pushl %eax # Save for later \n\
+ movl %eax,%ebx # For manipulation \n\
andl $0xffff,%eax # Only want lower word \n\
addl %eax,%esp # Pop off bytes \n\
+ pushl %ebx # Save for later \n\
movl $127,%eax # ERROR_PROC_NOT_FOUND \n\
pushl %eax # First argument \n\
call _SetLastError@4 # Set it \n\