Include error library value in C error source files instead of fixing up

at runtime.
This commit is contained in:
Dr. Stephen Henson
2005-04-12 13:30:45 +00:00
parent 4ecd7d2b7e
commit 96534114a3
3 changed files with 36 additions and 8 deletions

View File

@@ -621,7 +621,8 @@ static void err_load_strings(int lib, ERR_STRING_DATA *str)
{
while (str->error)
{
str->error|=ERR_PACK(lib,0,0);
if (lib)
str->error|=ERR_PACK(lib,0,0);
ERRFN(err_set_item)(str);
str++;
}
@@ -637,7 +638,8 @@ void ERR_unload_strings(int lib, ERR_STRING_DATA *str)
{
while (str->error)
{
str->error|=ERR_PACK(lib,0,0);
if (lib)
str->error|=ERR_PACK(lib,0,0);
ERRFN(err_del_item)(str);
str++;
}