Re-add inexplicably missing ldh.cc.

This commit is contained in:
Christopher Faylor 2009-03-18 14:46:24 +00:00
parent 9e112520ff
commit c4509a7ac2
1 changed files with 17 additions and 0 deletions

17
winsup/utils/ldh.cc Normal file
View File

@ -0,0 +1,17 @@
#include <windows.h>
int APIENTRY
WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
LPWSTR cmd = GetCommandLineW ();
while (*cmd)
if (*cmd != ' ' || cmd[1] != L'-' || cmd[2] != '-' || cmd[3] != ' ')
cmd++;
else
{
cmd += 4;
break;
}
if (!*cmd || !LoadLibraryW (cmd))
ExitProcess (0x0100);
ExitProcess (0x0000);
}