Commit 4fbabc2a authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

tools: Support multiple error name tokens in a line.

parent c8faa192
......@@ -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";
}
......
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