Fix bug where open() mode was not being set based on type of device being emulated.

signed-off-by:andrewfish



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12917 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
andrewfish 2012-01-07 00:30:52 +00:00
parent 8db9424e55
commit 2c5ce61d06
1 changed files with 2 additions and 0 deletions

View File

@ -661,6 +661,8 @@ EmuBlockIoThunkOpen (
}
}
Private->Mode = Private->WriteProtected ? O_RDONLY : O_RDWR;
This->Interface = &Private->EmuBlockIo;
This->Private = Private;
return EFI_SUCCESS;