mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +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;
|
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;
|
||||||
|
|
|
@ -40,7 +40,7 @@ GetProtoOpenNetworkDatabase(PCHAR Name)
|
||||||
"DatabasePath",
|
"DatabasePath",
|
||||||
NULL,
|
NULL,
|
||||||
&RegType,
|
&RegType,
|
||||||
DatabasePath,
|
(LPBYTE)DatabasePath,
|
||||||
&RegSize);
|
&RegSize);
|
||||||
|
|
||||||
/* Close the key */
|
/* Close the key */
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue