Author: hbelusca Date: Sat Sep 12 20:13:22 2015 New Revision: 69206
URL: http://svn.reactos.org/svn/reactos?rev=69206&view=rev Log: [NTVDM]: Fix parentheses. Thanks GCC.
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/dem.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/dem.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/dos/d... ============================================================================== --- trunk/reactos/subsystems/mvdm/ntvdm/dos/dem.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/mvdm/ntvdm/dos/dem.c [iso-8859-1] Sat Sep 12 20:13:22 2015 @@ -1432,11 +1432,11 @@ /* If the list is already empty, or just contains only one element, bail out */ // FIXME: Question: if the list has only one element, is it ALWAYS RootCmd ?? // FIXME: The following is hackish. - if (IsListEmpty(&ComSpecInfoList) || - (ComSpecInfoList.Flink == &RootCmd.Entry && - ComSpecInfoList.Blink == &RootCmd.Entry) && + if ((IsListEmpty(&ComSpecInfoList) || + (ComSpecInfoList.Flink == &RootCmd.Entry && + ComSpecInfoList.Blink == &RootCmd.Entry)) && ReentrancyCount == 0 && - (WaitForSingleObject(VdmTaskEvent, 0) == WAIT_TIMEOUT)) + WaitForSingleObject(VdmTaskEvent, 0) == WAIT_TIMEOUT) { /* Nothing runs, so exit immediately */ ExitVDM(FALSE, 0);