Changeset 7894 in vbox for trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
- Timestamp:
- Apr 11, 2008 7:40:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
r7780 r7894 688 688 Assert(VALID_PTR(pImage)); 689 689 690 vdiFlushImage(pImage);691 690 if (pImage->File != NIL_RTFILE) 692 691 { 692 vdiFlushImage(pImage); 693 693 RTFileClose(pImage->File); 694 694 pImage->File = NIL_RTFILE; … … 725 725 } 726 726 pImage->pszFilename = pszFilename; 727 pImage->File = NIL_RTFILE; 728 pImage->paBlocks = NULL; 729 pImage->pfnError = NULL; 730 pImage->pvErrorUser = NULL; 727 731 728 732 rc = vdiOpenImage(pImage, VD_OPEN_FLAGS_INFO | VD_OPEN_FLAGS_READONLY); … … 765 769 } 766 770 pImage->pszFilename = pszFilename; 771 pImage->File = NIL_RTFILE; 767 772 pImage->paBlocks = NULL; 768 773 pImage->pfnError = pfnError; … … 819 824 } 820 825 pImage->pszFilename = pszFilename; 826 pImage->File = NIL_RTFILE; 821 827 pImage->paBlocks = NULL; 822 828 pImage->pfnError = pfnError;
Note:
See TracChangeset
for help on using the changeset viewer.