diff --git a/reactos/dll/directx/ddraw/startup.c b/reactos/dll/directx/ddraw/startup.c index ef660ef1ef1..ce0bd06d921 100644 --- a/reactos/dll/directx/ddraw/startup.c +++ b/reactos/dll/directx/ddraw/startup.c @@ -136,7 +136,7 @@ Create_DirectDraw (LPGUID pGUID, LPDIRECTDRAW* pIface, { DX_STUB_str("Got iface\n"); - if (StartDirectDraw((LPDIRECTDRAW)This, pGUID, FALSE) == DD_OK); + if (StartDirectDraw((LPDIRECTDRAW)This, pGUID, FALSE) == DD_OK) { /* RtlZeroMemory(&wnd_class, sizeof(wnd_class)); diff --git a/reactos/dll/win32/setupapi/driver.c b/reactos/dll/win32/setupapi/driver.c index 6e214d1d8e0..3892bd5e2ca 100644 --- a/reactos/dll/win32/setupapi/driver.c +++ b/reactos/dll/win32/setupapi/driver.c @@ -1537,7 +1537,7 @@ SetupDiSetSelectedDriverA( if (DriverInfoData != NULL) { if (DriverInfoData->cbSize != sizeof(SP_DRVINFO_DATA_V2_A) && - DriverInfoData->cbSize != sizeof(SP_DRVINFO_DATA_V1_A)); + DriverInfoData->cbSize != sizeof(SP_DRVINFO_DATA_V1_A)) { SetLastError(ERROR_INVALID_PARAMETER); return FALSE; diff --git a/reactos/lib/rtl/message.c b/reactos/lib/rtl/message.c index 8b74d3b2da0..9546cc124f5 100644 --- a/reactos/lib/rtl/message.c +++ b/reactos/lib/rtl/message.c @@ -110,7 +110,7 @@ RtlFindMessage(PVOID BaseAddress, DPRINT("UnicodeText: %S\n", (PWSTR)MessageEntry->Text); } - if (MessageResourceEntry != NULL); + if (MessageResourceEntry != NULL) { *MessageResourceEntry = MessageEntry; } diff --git a/reactos/ntoskrnl/io/iomgr/controller.c b/reactos/ntoskrnl/io/iomgr/controller.c index 6220ba8de43..5f738a593af 100644 --- a/reactos/ntoskrnl/io/iomgr/controller.c +++ b/reactos/ntoskrnl/io/iomgr/controller.c @@ -36,7 +36,7 @@ IoAllocateController(IN PCONTROLLER_OBJECT ControllerObject, /* Insert the Device Queue */ if (!KeInsertDeviceQueue(&ControllerObject->DeviceWaitQueue, - &DeviceObject->Queue.Wcb.WaitQueueEntry)); + &DeviceObject->Queue.Wcb.WaitQueueEntry)) { /* Call the execution routine */ Result = ExecutionRoutine(DeviceObject, diff --git a/reactos/ntoskrnl/io/iomgr/remlock.c b/reactos/ntoskrnl/io/iomgr/remlock.c index b5f301830dd..55eaff47d23 100644 --- a/reactos/ntoskrnl/io/iomgr/remlock.c +++ b/reactos/ntoskrnl/io/iomgr/remlock.c @@ -114,7 +114,7 @@ IoReleaseRemoveLockEx(IN PIO_REMOVE_LOCK RemoveLock, } /* Decrement the lock count */ - if (!InterlockedDecrement(&Lock->Common.IoCount)); + if (!InterlockedDecrement(&Lock->Common.IoCount)) { /* Signal the event */ KeSetEvent(&Lock->Common.RemoveEvent, IO_NO_INCREMENT, FALSE);