mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 04:14:53 +00:00
Cleaning up victims of stricter warning checking...
svn path=/trunk/; revision=4107
This commit is contained in:
parent
a9d96a9cfc
commit
dc2da3fbac
15 changed files with 30 additions and 20 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: dllmain.c,v 1.6 2002/09/08 10:22:36 chorns Exp $
|
/* $Id: dllmain.c,v 1.7 2003/02/02 19:26:07 hyperion Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -15,6 +15,8 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
extern BOOL RegInitialize(VOID);
|
||||||
|
extern BOOL RegCleanup(VOID);
|
||||||
|
|
||||||
INT STDCALL
|
INT STDCALL
|
||||||
DllMain(PVOID hinstDll,
|
DllMain(PVOID hinstDll,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: shutdown.c,v 1.8 2003/02/02 17:20:51 ekohl Exp $
|
/* $Id: shutdown.c,v 1.9 2003/02/02 19:27:16 hyperion Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -24,8 +24,6 @@ WINBOOL
|
||||||
STDCALL
|
STDCALL
|
||||||
AbortSystemShutdownW(LPCWSTR lpMachineName)
|
AbortSystemShutdownW(LPCWSTR lpMachineName)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
|
||||||
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: reg.c,v 1.21 2002/12/08 16:14:28 robd Exp $
|
/* $Id: reg.c,v 1.22 2003/02/02 19:27:16 hyperion Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -105,7 +105,7 @@ static NTSTATUS OpenCurrentConfigKey(PHANDLE KeyHandle);
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
inline RegiTerminateWideString(LPWSTR String, DWORD Length)
|
inline void RegiTerminateWideString(LPWSTR String, DWORD Length)
|
||||||
{
|
{
|
||||||
LPWSTR AfterString = String + Length;
|
LPWSTR AfterString = String + Length;
|
||||||
*AfterString = 0;
|
*AfterString = 0;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: scm.c,v 1.15 2002/12/27 14:40:03 robd Exp $
|
/* $Id: scm.c,v 1.16 2003/02/02 19:27:16 hyperion Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -15,6 +15,7 @@
|
||||||
#define NTOS_MODE_USER
|
#define NTOS_MODE_USER
|
||||||
#include <ntos.h>
|
#include <ntos.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <wchar.h>
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
|
|
||||||
#define DBG
|
#define DBG
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: sctrl.c,v 1.8 2002/11/14 18:21:04 chorns Exp $
|
/* $Id: sctrl.c,v 1.9 2003/02/02 19:27:17 hyperion Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -15,6 +15,8 @@
|
||||||
#define NTOS_MODE_USER
|
#define NTOS_MODE_USER
|
||||||
#include <ntos.h>
|
#include <ntos.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <wchar.h>
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
@ -35,7 +37,7 @@ typedef struct
|
||||||
|
|
||||||
static ULONG ActiveServiceCount;
|
static ULONG ActiveServiceCount;
|
||||||
static PACTIVE_SERVICE ActiveServices;
|
static PACTIVE_SERVICE ActiveServices;
|
||||||
static PHANDLE ActiveServicesThreadHandles;
|
/* static PHANDLE ActiveServicesThreadHandles; */ /* uncomment when in use */
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
@ -315,9 +317,6 @@ BOOL STDCALL
|
||||||
StartServiceCtrlDispatcherW(LPSERVICE_TABLE_ENTRYW lpServiceStartTable)
|
StartServiceCtrlDispatcherW(LPSERVICE_TABLE_ENTRYW lpServiceStartTable)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
HANDLE h;
|
|
||||||
DWORD Tid;
|
|
||||||
DWORD r;
|
|
||||||
HANDLE hPipe;
|
HANDLE hPipe;
|
||||||
DWORD dwError;
|
DWORD dwError;
|
||||||
|
|
||||||
|
@ -347,7 +346,7 @@ StartServiceCtrlDispatcherW(LPSERVICE_TABLE_ENTRYW lpServiceStartTable)
|
||||||
}
|
}
|
||||||
|
|
||||||
dwError = ScConnectControlPipe(&hPipe);
|
dwError = ScConnectControlPipe(&hPipe);
|
||||||
if (dwError = ERROR_SUCCESS)
|
if (dwError == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
/* FIXME: free the service table */
|
/* FIXME: free the service table */
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
|
|
|
@ -56,7 +56,7 @@ CreateRectRgnIndirect(
|
||||||
CONST RECT *a0
|
CONST RECT *a0
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return W32kCreateRectRgnIndirect(a0);
|
return W32kCreateRectRgnIndirect((RECT *)a0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
|
#include <string.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <ddk/ntddk.h>
|
#include <ddk/ntddk.h>
|
||||||
#include <win32k/kapi.h>
|
#include <win32k/kapi.h>
|
||||||
|
@ -202,7 +203,6 @@ CreateFontA(
|
||||||
ANSI_STRING StringA;
|
ANSI_STRING StringA;
|
||||||
UNICODE_STRING StringU;
|
UNICODE_STRING StringU;
|
||||||
HFONT ret;
|
HFONT ret;
|
||||||
LOGFONT tlf;
|
|
||||||
|
|
||||||
RtlInitAnsiString(&StringA, (LPSTR)Face);
|
RtlInitAnsiString(&StringA, (LPSTR)Face);
|
||||||
RtlAnsiStringToUnicodeString(&StringU, &StringA, TRUE);
|
RtlAnsiStringToUnicodeString(&StringU, &StringA, TRUE);
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
* REVISIONS:
|
* REVISIONS:
|
||||||
* CSH 01/09-2000 Created
|
* CSH 01/09-2000 Created
|
||||||
*/
|
*/
|
||||||
|
#include <string.h>
|
||||||
#include <msafd.h>
|
#include <msafd.h>
|
||||||
#include <helpers.h>
|
#include <helpers.h>
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
* REVISIONS:
|
* REVISIONS:
|
||||||
* CSH 01/09-2000 Created
|
* CSH 01/09-2000 Created
|
||||||
*/
|
*/
|
||||||
|
#include <string.h>
|
||||||
#include <msafd.h>
|
#include <msafd.h>
|
||||||
|
|
||||||
INT
|
INT
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: win32.c,v 1.4 2002/08/31 17:11:24 hyperion Exp $
|
/* $Id: win32.c,v 1.5 2003/02/02 19:26:08 hyperion Exp $
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
|
@ -165,6 +165,15 @@ NTSTATUS STDCALL EnumProcessesCallback
|
||||||
}
|
}
|
||||||
|
|
||||||
/* exported interface */
|
/* exported interface */
|
||||||
|
/*
|
||||||
|
@brief Enumerate the process identifiers of the currently active processes
|
||||||
|
|
||||||
|
@param lpidProcess Array that receives the list of process identifiers
|
||||||
|
@param cb Size of the @p lpidProcess array, in bytes
|
||||||
|
@param lpcbNeeded Number of bytes returned in the @p lpidProcess array
|
||||||
|
|
||||||
|
@return [standard]
|
||||||
|
*/
|
||||||
BOOL STDCALL EnumProcesses
|
BOOL STDCALL EnumProcesses
|
||||||
(
|
(
|
||||||
DWORD *lpidProcess,
|
DWORD *lpidProcess,
|
||||||
|
|
|
@ -155,7 +155,6 @@ PCATALOG_ENTRY LocateProviderById(
|
||||||
{
|
{
|
||||||
PLIST_ENTRY CurrentEntry;
|
PLIST_ENTRY CurrentEntry;
|
||||||
PCATALOG_ENTRY Provider;
|
PCATALOG_ENTRY Provider;
|
||||||
UINT i;
|
|
||||||
|
|
||||||
WS_DbgPrint(MAX_TRACE, ("CatalogEntryId (%d).\n", CatalogEntryId));
|
WS_DbgPrint(MAX_TRACE, ("CatalogEntryId (%d).\n", CatalogEntryId));
|
||||||
|
|
||||||
|
|
|
@ -288,7 +288,6 @@ select(
|
||||||
PCATALOG_ENTRY Provider;
|
PCATALOG_ENTRY Provider;
|
||||||
INT Count;
|
INT Count;
|
||||||
INT Errno;
|
INT Errno;
|
||||||
ULONG i;
|
|
||||||
|
|
||||||
WS_DbgPrint(MAX_TRACE, ("readfds (0x%X) writefds (0x%X) exceptfds (0x%X).\n",
|
WS_DbgPrint(MAX_TRACE, ("readfds (0x%X) writefds (0x%X) exceptfds (0x%X).\n",
|
||||||
readfds, writefds, exceptfds));
|
readfds, writefds, exceptfds));
|
||||||
|
|
|
@ -176,7 +176,6 @@ WSAEventSelect(
|
||||||
PCATALOG_ENTRY Provider;
|
PCATALOG_ENTRY Provider;
|
||||||
INT Status;
|
INT Status;
|
||||||
INT Errno;
|
INT Errno;
|
||||||
LONG i;
|
|
||||||
|
|
||||||
if (!WSAINITIALIZED) {
|
if (!WSAINITIALIZED) {
|
||||||
WSASetLastError(WSANOTINITIALISED);
|
WSASetLastError(WSANOTINITIALISED);
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
*/
|
*/
|
||||||
#include <ws2_32.h>
|
#include <ws2_32.h>
|
||||||
#include <catalog.h>
|
#include <catalog.h>
|
||||||
|
#include <handle.h>
|
||||||
|
|
||||||
INT
|
INT
|
||||||
EXPORT
|
EXPORT
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
*/
|
*/
|
||||||
#include <ws2_32.h>
|
#include <ws2_32.h>
|
||||||
#include <catalog.h>
|
#include <catalog.h>
|
||||||
|
#include <handle.h>
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
WSPAPI
|
WSPAPI
|
||||||
|
@ -118,7 +119,7 @@ WPUModifyIFSHandle(
|
||||||
}
|
}
|
||||||
|
|
||||||
Socket = (SOCKET)CreateProviderHandle(
|
Socket = (SOCKET)CreateProviderHandle(
|
||||||
ProposedHandle,
|
(HANDLE)ProposedHandle,
|
||||||
Provider);
|
Provider);
|
||||||
|
|
||||||
*lpErrno = NO_ERROR;
|
*lpErrno = NO_ERROR;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue