Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 committed Nov 10, 2023
1 parent e4eb882 commit f772f0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
21 changes: 7 additions & 14 deletions include/libwindrv/libwindrv.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,10 @@

#include <libwindrv/crt/libwindrv.crt.h>

EXTERN_C
PDRIVER_OBJECT LibWinDrvDriverObject;
EXTERN_C
wchar_t LibWinDrvRegistryKey[_MAX_PATH];
EXTERN_C
wchar_t LibWinDrvServiceKeyName[_MAX_PATH];
EXTERN_C
PVOID LibWinDrvImageBase;
EXTERN_C
SIZE_T LibWinDrvImageSize;
EXTERN_C
DRIVER_INITIALIZE LibWinDrvDriverEntry;
EXTERN_C
DRIVER_UNLOAD LibWinDrvDriverUnLoad;
extern "C" PDRIVER_OBJECT LibWinDrvDriverObject;
extern "C" wchar_t LibWinDrvRegistryKey[_MAX_PATH];
extern "C" wchar_t LibWinDrvServiceKeyName[_MAX_PATH];
extern "C" PVOID LibWinDrvImageBase;
extern "C" SIZE_T LibWinDrvImageSize;
extern "C" DRIVER_INITIALIZE LibWinDrvDriverEntry;
extern "C" DRIVER_UNLOAD LibWinDrvDriverUnLoad;
3 changes: 2 additions & 1 deletion src/crt/libwindrv.crt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ extern "C" int __cdecl dprintf(const char *format, ...)

extern "C" int __cdecl puts(const char *_Str)
{
return printf(_Str);
char Temp[] = {'%', 's', 0};
return printf(Temp, _Str);
}

0 comments on commit f772f0c

Please sign in to comment.