mirror of
https://github.com/open-simh/simh.git
synced 2026-01-14 07:40:35 +00:00
Fixed error path issues found by Sergey Oboguev
This commit is contained in:
parent
e1d1893834
commit
c2d50b503e
@ -2660,7 +2660,7 @@ VHD_DynamicDiskHeader Dynamic;
|
||||
uint32 *BAT = NULL;
|
||||
time_t now;
|
||||
uint32 i;
|
||||
FILE *File;
|
||||
FILE *File = NULL;
|
||||
uint32 Status = 0;
|
||||
uint32 BytesPerSector = 512;
|
||||
uint64 SizeInBytes = ((uint64)SizeInSectors)*BytesPerSector;
|
||||
@ -2833,7 +2833,7 @@ CreateDifferencingVirtualDisk(const char *szVHDPath,
|
||||
const char *szParentVHDPath)
|
||||
{
|
||||
uint32 BytesPerSector = 512;
|
||||
VHDHANDLE hVHD;
|
||||
VHDHANDLE hVHD = NULL;
|
||||
VHD_Footer ParentFooter;
|
||||
VHD_DynamicDiskHeader ParentDynamic;
|
||||
uint32 ParentTimeStamp;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user