Changeset 27232 in vbox for trunk/src/VBox/Devices/Storage/RawHDDCore.cpp
- Timestamp:
- Mar 9, 2010 9:05:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/RawHDDCore.cpp
r26291 r27232 5 5 6 6 /* 7 * Copyright (C) 2006-20 07Sun Microsystems, Inc.7 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 141 141 pImage->pszFilename, 142 142 uOpenFlags, 143 NULL, &pImage->pvStorage); 143 NULL, 144 pImage->pVDIfsDisk, 145 &pImage->pvStorage); 144 146 #endif 145 147 … … 317 319 PCPDMMEDIAGEOMETRY pPCHSGeometry, 318 320 PCPDMMEDIAGEOMETRY pLCHSGeometry, 319 PFNV MPROGRESS pfnProgress, void *pvUser,321 PFNVDPROGRESS pfnProgress, void *pvUser, 320 322 unsigned uPercentStart, unsigned uPercentSpan) 321 323 { … … 403 405 if (pfnProgress) 404 406 { 405 rc = pfnProgress(NULL /* WARNING! pVM=NULL */, 406 uPercentStart + uOff * uPercentSpan * 98 / (cbSize * 100), 407 pvUser); 407 rc = pfnProgress(pvUser, 408 uPercentStart + uOff * uPercentSpan * 98 / (cbSize * 100)); 408 409 if (RT_FAILURE(rc)) 409 410 goto out; … … 413 414 414 415 if (RT_SUCCESS(rc) && pfnProgress) 415 pfnProgress(NULL /* WARNING! pVM=NULL */, 416 uPercentStart + uPercentSpan * 98 / 100, pvUser); 416 pfnProgress(pvUser, uPercentStart + uPercentSpan * 98 / 100); 417 417 418 418 pImage->cbSize = cbSize; … … 422 422 out: 423 423 if (RT_SUCCESS(rc) && pfnProgress) 424 pfnProgress(NULL /* WARNING! pVM=NULL */, 425 uPercentStart + uPercentSpan, pvUser); 424 pfnProgress(pvUser, uPercentStart + uPercentSpan); 426 425 427 426 if (RT_FAILURE(rc)) … … 548 547 PRAWIMAGE pImage; 549 548 550 PFNV MPROGRESS pfnProgress = NULL;549 PFNVDPROGRESS pfnProgress = NULL; 551 550 void *pvUser = NULL; 552 551 PVDINTERFACE pIfProgress = VDInterfaceGet(pVDIfsOperation,
Note:
See TracChangeset
for help on using the changeset viewer.