diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index afd659f65..0438b3777 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2002-05-27 Christopher Faylor + + * autoload.cc (noload): Properly mask low order word for determining + number of bytes to pop. + 2002-05-27 Christopher Faylor * fhandler_disk_file.cc (fhandler_disk_file::fstat): Minor logic diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 909ef1047..ed2f54042 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -123,7 +123,7 @@ noload: \n\ decl %eax # Yes. This is the # of bytes + 1 \n\ popl %edx # Caller's caller \n\ pushl %eax # Save for later \n\ - xorl $0xffff,%eax # Only want lower word \n\ + andl $0xffff,%eax # Only want lower word \n\ addl %eax,%esp # Pop off bytes \n\ movl $127,%eax # ERROR_PROC_NOT_FOUND \n\ pushl %eax # First argument \n\