make_requests: Grab status names from async_terminate calls too.

This commit is contained in:
Alexandre Julliard 2007-01-04 13:51:12 +01:00
parent 5c8421d3e7
commit 60d6518c82
2 changed files with 8 additions and 1 deletions

View File

@ -3945,10 +3945,12 @@ static const struct
{
{ "ACCESS_DENIED", STATUS_ACCESS_DENIED },
{ "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
{ "ALERTED", STATUS_ALERTED },
{ "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
{ "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
{ "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
{ "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
{ "CANCELLED", STATUS_CANCELLED },
{ "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
{ "DEVICE_BUSY", STATUS_DEVICE_BUSY },
{ "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
@ -3963,6 +3965,7 @@ static const struct
{ "ERROR_SEEK", 0xc0010000 | ERROR_SEEK },
{ "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
{ "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
{ "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
{ "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
{ "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
{ "INVALID_CID", STATUS_INVALID_CID },

View File

@ -241,7 +241,11 @@ sub GET_ERROR_NAMES()
{
if (/set_error\s*\(\s*STATUS_(\w+)\s*\)/)
{
$errors{$1} = "STATUS_$1";
$errors{$1} = "STATUS_$1" unless $1 eq "SUCCESS";
}
elsif (/async_terminate_\w+\s*\(.*,\s*STATUS_(\w+)\s*\)/)
{
$errors{$1} = "STATUS_$1" unless $1 eq "SUCCESS";
}
elsif (/set_win32_error\s*\(\s*(\w+)\s*\)/)
{