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

This commit is contained in:
Francois Gouget 2015-02-28 18:30:59 +01:00 committed by Alexandre Julliard
parent 128a86f0b0
commit 119e20a822
2 changed files with 11 additions and 12 deletions

View File

@ -1,4 +1,5 @@
MODULE = ndis.sys
EXTRADLLFLAGS = -Wb,--subsystem,native
C_SRCS = \
main.c

View File

@ -18,23 +18,21 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "winternl.h"
#include "ddk/wdm.h"
#include "wine/debug.h"
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
WINE_DEFAULT_DEBUG_CHANNEL(ndis);
NTSTATUS WINAPI DriverEntry(DRIVER_OBJECT *driver, UNICODE_STRING *path)
{
switch (reason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(instance);
break;
}
TRACE("(%p, %s)\n", driver, debugstr_w(path->Buffer));
return TRUE;
return STATUS_SUCCESS;
}