mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
- Fix some warnings
svn path=/trunk/; revision=42114
This commit is contained in:
parent
c856ffc8ed
commit
fd8fa4a64c
5 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
|
|
|
@ -40,7 +40,7 @@ GetProtoOpenNetworkDatabase(PCHAR Name)
|
|||
"DatabasePath",
|
||||
NULL,
|
||||
&RegType,
|
||||
DatabasePath,
|
||||
(LPBYTE)DatabasePath,
|
||||
&RegSize);
|
||||
|
||||
/* Close the key */
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -83,7 +83,7 @@ select(IN INT s,
|
|||
readfds,
|
||||
writefds,
|
||||
exceptfds,
|
||||
timeout,
|
||||
(struct timeval *)timeout,
|
||||
&ErrorCode);
|
||||
/* Deference the Socket Context */
|
||||
WsSockDereference(Socket);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue