summaryrefslogtreecommitdiff
path: root/EmulatorPkg
diff options
context:
space:
mode:
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-07 00:30:52 +0000
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-07 00:30:52 +0000
commit2c5ce61d06dcedd3f1a9cd3300deb671e448e55a (patch)
tree5f24e11f9bc49fd3b2e6f1e21f77a4c629c95fce /EmulatorPkg
parent8db9424e553889e6493e1ec4f73df8e588801fe5 (diff)
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
Diffstat (limited to 'EmulatorPkg')
-rw-r--r--EmulatorPkg/Unix/Host/BlockIo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/EmulatorPkg/Unix/Host/BlockIo.c b/EmulatorPkg/Unix/Host/BlockIo.c
index 50fe9b575..fa05fbc10 100644
--- a/EmulatorPkg/Unix/Host/BlockIo.c
+++ b/EmulatorPkg/Unix/Host/BlockIo.c
@@ -661,6 +661,8 @@ EmuBlockIoThunkOpen (
}
}
+ Private->Mode = Private->WriteProtected ? O_RDONLY : O_RDWR;
+
This->Interface = &Private->EmuBlockIo;
This->Private = Private;
return EFI_SUCCESS;