[DHCPCSVC] - Fix another funny GetLastError DPRINT

[NETID] - It's unicode! Surprising it even worked. Fixes warnings
[SACDRV] - Fix entry point warning
[CRT] - Fix MSVC warning

svn path=/trunk/; revision=53080
This commit is contained in:
Thomas Faber 2011-08-05 09:02:40 +00:00
parent 8cd5ca67a3
commit 8fd9e23140
4 changed files with 4 additions and 2 deletions

View file

@ -190,7 +190,7 @@ ServiceMain(DWORD argc, LPWSTR *argv)
NULL);
if (!ServiceStatusHandle)
{
DbgPrint("DHCPCSVC: Unable to register service control handler (%x)\n", GetLastError);
DbgPrint("DHCPCSVC: Unable to register service control handler (%lx)\n", GetLastError());
return;
}

View file

@ -1,4 +1,5 @@
set_unicode()
spec2def(netid.dll netid.spec)
set_rc_compiler()

View file

@ -15,6 +15,7 @@
/* FUNCTIONS ******************************************************************/
NTSTATUS
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath

View file

@ -540,7 +540,7 @@ streamout(FILE *stream, const TCHAR *format, va_list argptr)
if ((__int64)val64 < 0)
{
val64 = -val64;
val64 = -(__int64)val64;
prefix = _T("-");
}
else if (flags & FLAG_FORCE_SIGN)