mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:02:56 +00:00
Silence compiler warnings (1/11).
svn path=/trunk/; revision=37823
This commit is contained in:
parent
2220f06c73
commit
5148a03069
6 changed files with 10 additions and 10 deletions
|
@ -140,13 +140,13 @@ RtlStringVPrintfWorkerA(OUT PCHAR Destination,
|
||||||
IN va_list argList)
|
IN va_list argList)
|
||||||
{
|
{
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
ULONG Return;
|
LONG Return;
|
||||||
SIZE_T MaxLength, LocalNewLength = 0;
|
SIZE_T MaxLength, LocalNewLength = 0;
|
||||||
|
|
||||||
MaxLength = Length - 1;
|
MaxLength = Length - 1;
|
||||||
|
|
||||||
Return = _vsnprintf(Destination, MaxLength, Format, argList);
|
Return = _vsnprintf(Destination, MaxLength, Format, argList);
|
||||||
if ((Return < 0) || (Return > MaxLength))
|
if ((Return < 0) || ((SIZE_T)Return > MaxLength))
|
||||||
{
|
{
|
||||||
Destination += MaxLength;
|
Destination += MaxLength;
|
||||||
*Destination = ANSI_NULL;
|
*Destination = ANSI_NULL;
|
||||||
|
@ -155,7 +155,7 @@ RtlStringVPrintfWorkerA(OUT PCHAR Destination,
|
||||||
|
|
||||||
Status = STATUS_BUFFER_OVERFLOW;
|
Status = STATUS_BUFFER_OVERFLOW;
|
||||||
}
|
}
|
||||||
else if (Return == MaxLength)
|
else if ((SIZE_T)Return == MaxLength)
|
||||||
{
|
{
|
||||||
Destination += MaxLength;
|
Destination += MaxLength;
|
||||||
*Destination = ANSI_NULL;
|
*Destination = ANSI_NULL;
|
||||||
|
|
|
@ -153,8 +153,8 @@ InsertTailList(
|
||||||
ListHead->Blink = Entry;
|
ListHead->Blink = Entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOLEAN
|
|
||||||
static __inline
|
static __inline
|
||||||
|
BOOLEAN
|
||||||
IsListEmpty(
|
IsListEmpty(
|
||||||
IN const LIST_ENTRY * ListHead
|
IN const LIST_ENTRY * ListHead
|
||||||
)
|
)
|
||||||
|
|
|
@ -191,7 +191,7 @@ typedef struct _DBGKM_MSG
|
||||||
{
|
{
|
||||||
PORT_MESSAGE h;
|
PORT_MESSAGE h;
|
||||||
DBGKM_APINUMBER ApiNumber;
|
DBGKM_APINUMBER ApiNumber;
|
||||||
ULONG ReturnedStatus;
|
NTSTATUS ReturnedStatus;
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
DBGKM_EXCEPTION Exception;
|
DBGKM_EXCEPTION Exception;
|
||||||
|
|
|
@ -77,8 +77,8 @@ InsertTailList(
|
||||||
ListHead->Blink = Entry;
|
ListHead->Blink = Entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOLEAN
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
|
BOOLEAN
|
||||||
IsListEmpty(
|
IsListEmpty(
|
||||||
IN const LIST_ENTRY * ListHead
|
IN const LIST_ENTRY * ListHead
|
||||||
)
|
)
|
||||||
|
|
|
@ -44,7 +44,7 @@ typedef struct _DESK_EXT_INTERFACE
|
||||||
|
|
||||||
LONG WINAPI DisplaySaveSettings(PVOID pContext, HWND hwndPropSheet);
|
LONG WINAPI DisplaySaveSettings(PVOID pContext, HWND hwndPropSheet);
|
||||||
|
|
||||||
static PDESK_EXT_INTERFACE __inline
|
static __inline PDESK_EXT_INTERFACE
|
||||||
QueryDeskCplExtInterface(IDataObject *pdo)
|
QueryDeskCplExtInterface(IDataObject *pdo)
|
||||||
{
|
{
|
||||||
PDESK_EXT_INTERFACE pRecvBuffer, pExtIface = NULL;
|
PDESK_EXT_INTERFACE pRecvBuffer, pExtIface = NULL;
|
||||||
|
@ -80,7 +80,7 @@ QueryDeskCplExtInterface(IDataObject *pdo)
|
||||||
return pExtIface;
|
return pExtIface;
|
||||||
}
|
}
|
||||||
|
|
||||||
static LPTSTR __inline
|
static __inline LPTSTR
|
||||||
QueryDeskCplString(IDataObject *pdo, UINT cfFormat)
|
QueryDeskCplString(IDataObject *pdo, UINT cfFormat)
|
||||||
{
|
{
|
||||||
FORMATETC fetc;
|
FORMATETC fetc;
|
||||||
|
@ -118,7 +118,7 @@ QueryDeskCplString(IDataObject *pdo, UINT cfFormat)
|
||||||
return lpStr;
|
return lpStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static LONG __inline
|
static __inline LONG
|
||||||
DeskCplExtDisplaySaveSettings(PDESK_EXT_INTERFACE DeskExtInterface,
|
DeskCplExtDisplaySaveSettings(PDESK_EXT_INTERFACE DeskExtInterface,
|
||||||
HWND hwndDlg)
|
HWND hwndDlg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#error Header intended for use by NTOSKRNL/WIN32K only!
|
#error Header intended for use by NTOSKRNL/WIN32K only!
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const UNICODE_STRING __emptyUnicodeString = {0};
|
static const UNICODE_STRING __emptyUnicodeString = {0, 0, NULL};
|
||||||
static const LARGE_INTEGER __emptyLargeInteger = {{0, 0}};
|
static const LARGE_INTEGER __emptyLargeInteger = {{0, 0}};
|
||||||
static const ULARGE_INTEGER __emptyULargeInteger = {{0, 0}};
|
static const ULARGE_INTEGER __emptyULargeInteger = {{0, 0}};
|
||||||
static const IO_STATUS_BLOCK __emptyIoStatusBlock = {{0}, 0};
|
static const IO_STATUS_BLOCK __emptyIoStatusBlock = {{0}, 0};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue