Skip to content

Commit 45a803b

Browse files
[VIDEOPRT] fix incorrect status return
1 parent c7d4040 commit 45a803b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

win32ss/drivers/videoprt/resource.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,12 @@ IntVideoPortMapMemory(
424424

425425
return MappedAddress;
426426
}
427-
428-
if (Status)
429-
*Status = NO_ERROR;
427+
else
428+
{
429+
if (Status)
430+
*Status = ERROR_NOT_ENOUGH_MEMORY;
431+
DPRINT1("Couldn't map video memory (IntVideoPortMapMemory)\n");
432+
}
430433

431434
return NULL;
432435
}

0 commit comments

Comments
 (0)