VirtualBox

Ignore:
Timestamp:
Nov 2, 2017 9:46:15 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118896
Message:

common/utils.py: Use the PyHandle.Close method rather than win32api.CloseHandle to close thread and process handles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/common/utils.py

    r69461 r69547  
    737737            except:
    738738                pass;
    739             win32api.CloseHandle(hProcess)                                                      # pylint: disable=no-member
     739            hProcess.Close(); #win32api.CloseHandle(hProcess)
    740740    else:
    741741        try:
     
    788788            pass;
    789789        else:
    790             win32api.CloseHandle(hProcess);                                                     # pylint: disable=no-member
     790            hProcess.Close(); # win32api.CloseHandle(hProcess);
    791791            fRc = True;
    792792    else:
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