gptfdisk: reformat

Signed-off-by: lianwei <lianwei3@huawei.com>
This commit is contained in:
lianwei
2024-05-20 10:52:50 +08:00
parent e96c31993c
commit 32b8d6f410
+3 -3
View File
@@ -113,9 +113,9 @@ int DiskIO::OpenForWrite(void) {
// Close the disk device. Note that this does NOT erase the stored filenames,
// so the file can be re-opened without specifying the filename.
void DiskIO::Close(void) {
if (isOpen) {
CloseHandle(fd);
fd = INVALID_HANDLE_VALUE;
if (isOpen) {
CloseHandle(fd);
fd = INVALID_HANDLE_VALUE;
}
isOpen = 0;
openForWrite = 0;