Commit 119e20a8 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

ndis.sys: Convert ndis.sys to a native driver as it should be.

parent 128a86f0
MODULE = ndis.sys MODULE = ndis.sys
EXTRADLLFLAGS = -Wb,--subsystem,native
C_SRCS = \ C_SRCS = \
main.c main.c
...@@ -18,23 +18,21 @@ ...@@ -18,23 +18,21 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include "config.h"
#include <stdarg.h> #include <stdarg.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winternl.h"
#include "ddk/wdm.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(ndis);
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) NTSTATUS WINAPI DriverEntry(DRIVER_OBJECT *driver, UNICODE_STRING *path)
{ {
switch (reason) TRACE("(%p, %s)\n", driver, debugstr_w(path->Buffer));
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(instance);
break;
}
return TRUE; return STATUS_SUCCESS;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment