* FIXME: Revise this once a locking order for file size changes is
* decided
*/
- if (UMaximumSize != NULL)
+ if ((UMaximumSize != NULL) && (UMaximumSize->QuadPart != 0))
{
- MaximumSize = *UMaximumSize;
+ MaximumSize = *UMaximumSize;
}
else
{
ImageSectionObject, NULL))
{
/*
- * An other thread has initialized the some image in the background
+ * An other thread has initialized the same image in the background
*/
ExFreePool(ImageSectionObject->Segments);
ExFreePool(ImageSectionObject);