mirror of https://github.com/acidanthera/audk.git
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:
parent
8db9424e55
commit
2c5ce61d06
|
@ -661,6 +661,8 @@ EmuBlockIoThunkOpen (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Private->Mode = Private->WriteProtected ? O_RDONLY : O_RDWR;
|
||||||
|
|
||||||
This->Interface = &Private->EmuBlockIo;
|
This->Interface = &Private->EmuBlockIo;
|
||||||
This->Private = Private;
|
This->Private = Private;
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue