Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

Commit

Permalink
Do not hardcode extension name
Browse files Browse the repository at this point in the history
Show filename and error code when the extension loading attempt failed.
This presents more accurate information to the user about the relevant
failure.
  • Loading branch information
luislavena committed Nov 6, 2012
1 parent fda6d8c commit 67f2247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dll-handles/mylib.c
Expand Up @@ -27,7 +27,7 @@ void load_library(char *filename)
}
else
{
printf("Failed to load dll1: %d\n", GetLastError());
printf("Failed to load: '%s' (%d)\n", filename, GetLastError());
}

if (handle)
Expand Down

0 comments on commit 67f2247

Please sign in to comment.