tools: Support multiple error name tokens in a line.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c8faa1925c
commit
4fbabc2add
|
@ -5429,6 +5429,7 @@ static const struct
|
|||
{ "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
|
||||
{ "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB },
|
||||
{ "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
|
||||
{ "PROCESS_NOT_IN_JOB", STATUS_PROCESS_NOT_IN_JOB },
|
||||
{ "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
|
||||
{ "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
|
||||
{ "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
|
||||
|
|
|
@ -290,11 +290,11 @@ sub GET_ERROR_NAMES()
|
|||
open FILE, $f or die "Can't open $f";
|
||||
while (<FILE>)
|
||||
{
|
||||
if (/STATUS_(\w+)/)
|
||||
while (/\bSTATUS_(\w+)/g)
|
||||
{
|
||||
$errors{$1} = "STATUS_$1" unless ($1 eq "SUCCESS" || $1 eq "WAIT_0");
|
||||
}
|
||||
elsif (/set_win32_error\s*\(\s*(\w+)\s*\)/)
|
||||
while (/\bset_win32_error\s*\(\s*(\w+)\s*\)/g)
|
||||
{
|
||||
$errors{$1} = "0xc0010000 | $1";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue