VirtualBox

Ignore:
Timestamp:
May 5, 2015 3:45:27 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100056
Message:

Modified IGuestSession::fileOpenEx: removed the 'offset' parameter and added generic flags parameter so we can easily add features later when we need them (see RTFILE_O_XXX for inspiration). Changed FileSeekOrigin_Set to FileSeekOrigin_Begin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r55634 r55668  
    27202720                break;
    27212721            try:
    2722                 if curTest.cbOffset > 0:
     2722                if curTest.cbOffset > 0: # The offset parameter is gone.
    27232723                    if self.oTstDrv.fpApiVer >= 5.0:
    27242724                        curFile = curGuestSession.fileOpenEx(curTest.sFile, curTest.getAccessMode(), curTest.getOpenAction(),
    2725                                                              curTest.getSharingMode(), curTest.lCreationMode, curTest.cbOffset);
     2725                                                             curTest.getSharingMode(), curTest.lCreationMode, []);
     2726                        curFile.seek(curTest.cbOffset, vboxcon.FileSeekOrigin_Begin);
    27262727                    else:
    27272728                        curFile = curGuestSession.fileOpenEx(curTest.sFile, curTest.sOpenMode, curTest.sDisposition, \
     
    28332834                break;
    28342835            try:
    2835                 if curTest.cbOffset > 0:
     2836                if curTest.cbOffset > 0: # The offset parameter is gone.
    28362837                    if self.oTstDrv.fpApiVer >= 5.0:
    28372838                        curFile = curGuestSession.fileOpenEx(curTest.sFile, curTest.getAccessMode(), curTest.getOpenAction(),
    2838                                                              curTest.getSharingMode(), curTest.cbOffset);
     2839                                                             curTest.getSharingMode(), []);
     2840                        curFile.seek(curTest.cbOffset, vboxcon.FileSeekOrigin_Begin);
    28392841                    else:
    28402842                        curFile = curGuestSession.fileOpenEx(curTest.sFile, curTest.sOpenMode, curTest.sDisposition, \
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette