Skip to content

Commit

Permalink
[memdisk] Add a couple of assertions
Browse files Browse the repository at this point in the history
Consistent with the GRUB4DOS counterpart.
  • Loading branch information
Shao Miller committed Dec 19, 2012
1 parent 1d7febd commit 3024382
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/winvblock/memdisk/memdisk.c
Expand Up @@ -126,6 +126,9 @@ static NTSTATUS STDCALL WvMemdiskDriveDevice(
DEVICE_OBJECT * fdo;
S_WV_MEMDISK_BUS * bus;

ASSERT(drv_obj);
ASSERT(pdo);

if (pdo->DriverObject != drv_obj || !(safe_hook = WvlGetSafeHook(pdo))) {
status = STATUS_NOT_SUPPORTED;
goto err_safe_hook;
Expand Down

0 comments on commit 3024382

Please sign in to comment.