- 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
+3 -3
View File
@@ -66,7 +66,7 @@ WsThreadSetBlockingHook(IN PWSTHREAD Thread,
FARPROC OldHook = Thread->BlockingHook;
/* Check if we're resetting to our default hook */
if (BlockingHook == WsThreadDefaultBlockingHook)
if (BlockingHook == (FARPROC)WsThreadDefaultBlockingHook)
{
/* Clear out the blocking callback */
Thread->BlockingCallback = NULL;
@@ -87,7 +87,7 @@ WSAAPI
WsThreadUnhookBlockingHook(IN PWSTHREAD Thread)
{
/* Reset the hook to the default, and remove the callback */
Thread->BlockingHook = WsThreadDefaultBlockingHook;
Thread->BlockingHook = (FARPROC)WsThreadDefaultBlockingHook;
Thread->BlockingCallback = NULL;
/* Return success */
@@ -143,7 +143,7 @@ WsThreadAllocate(VOID)
Thread = HeapAlloc(WsSockHeap, HEAP_ZERO_MEMORY, sizeof(*Thread));
/* Set non-zero data */
Thread->BlockingHook = WsThreadDefaultBlockingHook;
Thread->BlockingHook = (FARPROC)WsThreadDefaultBlockingHook;
/* Return it */
return Thread;
+1 -1
View File
@@ -40,7 +40,7 @@ GetProtoOpenNetworkDatabase(PCHAR Name)
"DatabasePath",
NULL,
&RegType,
DatabasePath,
(LPBYTE)DatabasePath,
&RegSize);
/* Close the key */
+1 -1
View File
@@ -72,7 +72,7 @@ WsNcEntryInitializeFromRegistry(IN PNSCATALOG_ENTRY CatalogEntry,
ULONG RegSize = MAX_PATH;
/* Convert to a 00000xxx string */
sprintf(CatalogEntryName, "%0""12""i", UniqueId);
sprintf(CatalogEntryName, "%0""12""i", (int)UniqueId);
/* Open the Entry */
Return = RegOpenKeyEx(ParentKey,
+1 -1
View File
@@ -83,7 +83,7 @@ select(IN INT s,
readfds,
writefds,
exceptfds,
timeout,
(struct timeval *)timeout,
&ErrorCode);
/* Deference the Socket Context */
WsSockDereference(Socket);
+1 -1
View File
@@ -182,7 +182,7 @@ WsSetupCatalogProtection(IN HKEY CatalogKey,
}
/* Try to open it for writing */
sprintf(KeyBuffer, "%08.8lX", NewUniqueId);
sprintf(KeyBuffer, "%8.8lX", NewUniqueId);
ErrorCode = RegOpenKeyEx(CatalogKey,
KeyBuffer,
0,