OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd3c2cd
)
Re-add inexplicably missing ldh.cc.
author
cgf
<cgf>
Wed, 18 Mar 2009 14:46:24 +0000
(14:46 +0000)
committer
cgf
<cgf>
Wed, 18 Mar 2009 14:46:24 +0000
(14:46 +0000)
winsup/utils/ldh.cc
[new file with mode: 0644]
patch
|
blob
diff --git a/winsup/utils/ldh.cc
b/winsup/utils/ldh.cc
new file mode 100644
(file)
index 0000000..
7bea569
--- /dev/null
+++ b/
winsup/utils/ldh.cc
@@ -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);
+}