[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); NULL);
if (!ServiceStatusHandle) 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; return;
} }

View file

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

View file

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

View file

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