Author: jgardou
Date: Mon Dec 30 22:00:49 2013
New Revision: 61464
URL:
http://svn.reactos.org/svn/reactos?rev=61464&view=rev
Log:
[SACDRV]
- Fix unsigned vs 0 comparison
Modified:
trunk/reactos/drivers/sac/driver/concmd.c
Modified: trunk/reactos/drivers/sac/driver/concmd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/sac/driver/concmd.…
==============================================================================
--- trunk/reactos/drivers/sac/driver/concmd.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/sac/driver/concmd.c [iso-8859-1] Mon Dec 30 22:00:49 2013
@@ -94,7 +94,7 @@
/* 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;