Author: cwittich
Date: Tue Dec 30 07:55:52 2008
New Revision: 38471
URL:
http://svn.reactos.org/svn/reactos?rev=38471&view=rev
Log:
get icmp.dll to work
Modified:
trunk/reactos/dll/win32/icmp/icmp.rbuild
trunk/reactos/dll/win32/icmp/icmp_main.c
Modified: trunk/reactos/dll/win32/icmp/icmp.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/icmp/icmp.rbuild…
==============================================================================
--- trunk/reactos/dll/win32/icmp/icmp.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/icmp/icmp.rbuild [iso-8859-1] Tue Dec 30 07:55:52 2008
@@ -1,4 +1,4 @@
-<module name="icmp" type="win32dll" entrypoint="0"
baseaddress="${BASEADDRESS_ICMP}" installbase="system32"
installname="icmp.dll" allowwarnings="true">
+<module name="icmp" type="win32dll"
baseaddress="${BASEADDRESS_ICMP}" installbase="system32"
installname="icmp.dll" allowwarnings="true">
<importlibrary definition="icmp.spec" />
<include base="icmp">.</include>
<include base="ReactOS">include/reactos/wine</include>
Modified: trunk/reactos/dll/win32/icmp/icmp_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/icmp/icmp_main.c…
==============================================================================
--- trunk/reactos/dll/win32/icmp/icmp_main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/icmp/icmp_main.c [iso-8859-1] Tue Dec 30 07:55:52 2008
@@ -142,6 +142,22 @@
/*
* Exported Routines.
*/
+
+BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ WSADATA wsaData;
+
+ switch (fdwReason) {
+ case DLL_PROCESS_ATTACH:
+ WSAStartup(MAKEWORD(2, 2), &wsaData);
+ break;
+
+ case DLL_PROCESS_DETACH:
+ WSACleanup();
+ break;
+ }
+ return TRUE;
+}
/***********************************************************************
* IcmpCreateFile (ICMP.@)