- Fix some warnings

svn path=/trunk/; revision=42114
This commit is contained in:
Dmitry Chapyshev 2009-07-21 09:10:28 +00:00
parent c856ffc8ed
commit fd8fa4a64c
5 changed files with 7 additions and 7 deletions

View file

@ -66,7 +66,7 @@ WsThreadSetBlockingHook(IN PWSTHREAD Thread,
FARPROC OldHook = Thread->BlockingHook; FARPROC OldHook = Thread->BlockingHook;
/* Check if we're resetting to our default hook */ /* Check if we're resetting to our default hook */
if (BlockingHook == WsThreadDefaultBlockingHook) if (BlockingHook == (FARPROC)WsThreadDefaultBlockingHook)
{ {
/* Clear out the blocking callback */ /* Clear out the blocking callback */
Thread->BlockingCallback = NULL; Thread->BlockingCallback = NULL;
@ -87,7 +87,7 @@ WSAAPI
WsThreadUnhookBlockingHook(IN PWSTHREAD Thread) WsThreadUnhookBlockingHook(IN PWSTHREAD Thread)
{ {
/* Reset the hook to the default, and remove the callback */ /* Reset the hook to the default, and remove the callback */
Thread->BlockingHook = WsThreadDefaultBlockingHook; Thread->BlockingHook = (FARPROC)WsThreadDefaultBlockingHook;
Thread->BlockingCallback = NULL; Thread->BlockingCallback = NULL;
/* Return success */ /* Return success */
@ -143,7 +143,7 @@ WsThreadAllocate(VOID)
Thread = HeapAlloc(WsSockHeap, HEAP_ZERO_MEMORY, sizeof(*Thread)); Thread = HeapAlloc(WsSockHeap, HEAP_ZERO_MEMORY, sizeof(*Thread));
/* Set non-zero data */ /* Set non-zero data */
Thread->BlockingHook = WsThreadDefaultBlockingHook; Thread->BlockingHook = (FARPROC)WsThreadDefaultBlockingHook;
/* Return it */ /* Return it */
return Thread; return Thread;

View file

@ -40,7 +40,7 @@ GetProtoOpenNetworkDatabase(PCHAR Name)
"DatabasePath", "DatabasePath",
NULL, NULL,
&RegType, &RegType,
DatabasePath, (LPBYTE)DatabasePath,
&RegSize); &RegSize);
/* Close the key */ /* Close the key */

View file

@ -72,7 +72,7 @@ WsNcEntryInitializeFromRegistry(IN PNSCATALOG_ENTRY CatalogEntry,
ULONG RegSize = MAX_PATH; ULONG RegSize = MAX_PATH;
/* Convert to a 00000xxx string */ /* Convert to a 00000xxx string */
sprintf(CatalogEntryName, "%0""12""i", UniqueId); sprintf(CatalogEntryName, "%0""12""i", (int)UniqueId);
/* Open the Entry */ /* Open the Entry */
Return = RegOpenKeyEx(ParentKey, Return = RegOpenKeyEx(ParentKey,

View file

@ -83,7 +83,7 @@ select(IN INT s,
readfds, readfds,
writefds, writefds,
exceptfds, exceptfds,
timeout, (struct timeval *)timeout,
&ErrorCode); &ErrorCode);
/* Deference the Socket Context */ /* Deference the Socket Context */
WsSockDereference(Socket); WsSockDereference(Socket);

View file

@ -182,7 +182,7 @@ WsSetupCatalogProtection(IN HKEY CatalogKey,
} }
/* Try to open it for writing */ /* Try to open it for writing */
sprintf(KeyBuffer, "%08.8lX", NewUniqueId); sprintf(KeyBuffer, "%8.8lX", NewUniqueId);
ErrorCode = RegOpenKeyEx(CatalogKey, ErrorCode = RegOpenKeyEx(CatalogKey,
KeyBuffer, KeyBuffer,
0, 0,