From 8c19f17ac0611a3c0bf0901ae1654dcdf884ea0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Mon, 30 Dec 2013 22:00:49 +0000 Subject: [PATCH] [SACDRV] - Fix unsigned vs 0 comparison svn path=/trunk/; revision=61464 --- reactos/drivers/sac/driver/concmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/sac/driver/concmd.c b/reactos/drivers/sac/driver/concmd.c index 2c10244592d..c3cbe68376d 100644 --- a/reactos/drivers/sac/driver/concmd.c +++ b/reactos/drivers/sac/driver/concmd.c @@ -94,7 +94,7 @@ GetTListInfo(IN PSAC_SYSTEM_INFORMATION SacInfo, /* Make sure it's at least big enough to hold the static structure */ BufferLength = InputSize - sizeof(SAC_SYSTEM_INFORMATION); - if ((INT)InputSize - sizeof(SAC_SYSTEM_INFORMATION) < 0) + if (InputSize < sizeof(SAC_SYSTEM_INFORMATION)) { SAC_DBG(SAC_DBG_ENTRY_EXIT, "Exiting, no memory (2).\n"); return STATUS_NO_MEMORY;