Skip to content

Commit

Permalink
wsld.h :wait when dll loading failed
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk7 committed Jan 3, 2018
1 parent 55e3a4d commit 56c82fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wsld.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ int WslApiInit()
if (WslHmod == NULL)
{
fwprintf(stderr,L"ERROR: LoadLibraryEx() failed to load wslapi.dll\n");
wprintf(L"Press any key to exit...");
getchar();
exit(EXIT_FAILURE);
}

Expand All @@ -64,6 +66,8 @@ int WslApiInit()
{
FreeLibrary(WslHmod);
fwprintf(stderr,L"ERROR: GetProcAddress() failed to get function address\n");
wprintf(L"Press any key to exit...");
getchar();
exit(EXIT_FAILURE);
}
return 0;
Expand Down

0 comments on commit 56c82fe

Please sign in to comment.