diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-08 22:31:29 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-08 22:31:29 +0000 |
commit | 21ce7a41791e461f5d92f6ce3c712b8dd1f33a54 (patch) | |
tree | 08d50536ad416651056cafdbbb92c9df45012728 | |
parent | 946bfba2c321425f22fecb53349b779594543919 (diff) | |
download | edk2-21ce7a41791e461f5d92f6ce3c712b8dd1f33a54.zip edk2-21ce7a41791e461f5d92f6ce3c712b8dd1f33a54.tar.gz edk2-21ce7a41791e461f5d92f6ce3c712b8dd1f33a54.tar.bz2 |
InOsEmuPkg: Fix reconnect -r from the shell
Signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11772 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | InOsEmuPkg/EmuGopDxe/GopScreen.c | 2 | ||||
-rw-r--r-- | InOsEmuPkg/Unix/Sec/BlockIo.c | 1 | ||||
-rw-r--r-- | InOsEmuPkg/Unix/Sec/PosixFileSystem.c | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/InOsEmuPkg/EmuGopDxe/GopScreen.c b/InOsEmuPkg/EmuGopDxe/GopScreen.c index e7e58ad..7f4333d 100644 --- a/InOsEmuPkg/EmuGopDxe/GopScreen.c +++ b/InOsEmuPkg/EmuGopDxe/GopScreen.c @@ -372,7 +372,7 @@ EmuGopDestructor ( Status = EFI_SUCCESS; if (!Private->HardwareNeedsStarting) { - Status = Private->EmuIoThunk->Open (Private->EmuIoThunk); + Status = Private->EmuIoThunk->Close (Private->EmuIoThunk); Private->EmuGraphicsWindow = NULL; } diff --git a/InOsEmuPkg/Unix/Sec/BlockIo.c b/InOsEmuPkg/Unix/Sec/BlockIo.c index 64494fe..b764a63 100644 --- a/InOsEmuPkg/Unix/Sec/BlockIo.c +++ b/InOsEmuPkg/Unix/Sec/BlockIo.c @@ -701,6 +701,7 @@ EmuBlockIoThunkClose ( free (Private->Filename);
}
free (This->Private);
+ This->Private = NULL;
}
return EFI_SUCCESS;
diff --git a/InOsEmuPkg/Unix/Sec/PosixFileSystem.c b/InOsEmuPkg/Unix/Sec/PosixFileSystem.c index 720f102..723e7be 100644 --- a/InOsEmuPkg/Unix/Sec/PosixFileSystem.c +++ b/InOsEmuPkg/Unix/Sec/PosixFileSystem.c @@ -1537,6 +1537,7 @@ PosixFileSystmeThunkClose ( free (Private->VolumeLabel); } free (This->Private); + This->Private = NULL; } return EFI_SUCCESS; |