mirror of
https://github.com/reactos/reactos.git
synced 2025-05-04 05:03:22 +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)
|
||||
{
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
ULONG Return;
|
||||
LONG Return;
|
||||
SIZE_T MaxLength, LocalNewLength = 0;
|
||||
|
||||
MaxLength = Length - 1;
|
||||
|
||||
Return = _vsnprintf(Destination, MaxLength, Format, argList);
|
||||
if ((Return < 0) || (Return > MaxLength))
|
||||
if ((Return < 0) || ((SIZE_T)Return > MaxLength))
|
||||
{
|
||||
Destination += MaxLength;
|
||||
*Destination = ANSI_NULL;
|
||||
|
@ -155,7 +155,7 @@ RtlStringVPrintfWorkerA(OUT PCHAR Destination,
|
|||
|
||||
Status = STATUS_BUFFER_OVERFLOW;
|
||||
}
|
||||
else if (Return == MaxLength)
|
||||
else if ((SIZE_T)Return == MaxLength)
|
||||
{
|
||||
Destination += MaxLength;
|
||||
*Destination = ANSI_NULL;
|
||||
|
|
|
@ -153,8 +153,8 @@ InsertTailList(
|
|||
ListHead->Blink = Entry;
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
static __inline
|
||||
BOOLEAN
|
||||
IsListEmpty(
|
||||
IN const LIST_ENTRY * ListHead
|
||||
)
|
||||
|
|
|
@ -191,7 +191,7 @@ typedef struct _DBGKM_MSG
|
|||
{
|
||||
PORT_MESSAGE h;
|
||||
DBGKM_APINUMBER ApiNumber;
|
||||
ULONG ReturnedStatus;
|
||||
NTSTATUS ReturnedStatus;
|
||||
union
|
||||
{
|
||||
DBGKM_EXCEPTION Exception;
|
||||
|
|
|
@ -77,8 +77,8 @@ InsertTailList(
|
|||
ListHead->Blink = Entry;
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
IsListEmpty(
|
||||
IN const LIST_ENTRY * ListHead
|
||||
)
|
||||
|
|
|
@ -44,7 +44,7 @@ typedef struct _DESK_EXT_INTERFACE
|
|||
|
||||
LONG WINAPI DisplaySaveSettings(PVOID pContext, HWND hwndPropSheet);
|
||||
|
||||
static PDESK_EXT_INTERFACE __inline
|
||||
static __inline PDESK_EXT_INTERFACE
|
||||
QueryDeskCplExtInterface(IDataObject *pdo)
|
||||
{
|
||||
PDESK_EXT_INTERFACE pRecvBuffer, pExtIface = NULL;
|
||||
|
@ -80,7 +80,7 @@ QueryDeskCplExtInterface(IDataObject *pdo)
|
|||
return pExtIface;
|
||||
}
|
||||
|
||||
static LPTSTR __inline
|
||||
static __inline LPTSTR
|
||||
QueryDeskCplString(IDataObject *pdo, UINT cfFormat)
|
||||
{
|
||||
FORMATETC fetc;
|
||||
|
@ -118,7 +118,7 @@ QueryDeskCplString(IDataObject *pdo, UINT cfFormat)
|
|||
return lpStr;
|
||||
}
|
||||
|
||||
static LONG __inline
|
||||
static __inline LONG
|
||||
DeskCplExtDisplaySaveSettings(PDESK_EXT_INTERFACE DeskExtInterface,
|
||||
HWND hwndDlg)
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#error Header intended for use by NTOSKRNL/WIN32K only!
|
||||
#endif
|
||||
|
||||
static const UNICODE_STRING __emptyUnicodeString = {0};
|
||||
static const UNICODE_STRING __emptyUnicodeString = {0, 0, NULL};
|
||||
static const LARGE_INTEGER __emptyLargeInteger = {{0, 0}};
|
||||
static const ULARGE_INTEGER __emptyULargeInteger = {{0, 0}};
|
||||
static const IO_STATUS_BLOCK __emptyIoStatusBlock = {{0}, 0};
|
||||
|
|
Loading…
Reference in a new issue