VirtualBox

Changeset 69546 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 2, 2017 9:44:55 AM (7 years ago)
Author:
vboxsync
Message:

winbase: 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/testdriver/winbase.py

    r69544 r69546  
    103103        except:
    104104            reporter.logXcpt('uPid=%s' % (uPid,));
    105         win32api.CloseHandle(hProcess)
     105        hProcess.Close(); #win32api.CloseHandle(hProcess)
    106106    return fRc;
    107107
     
    119119        reporter.logXcpt('uPid=%s' % (uPid,));
    120120    else:
    121         win32api.CloseHandle(hProcess)
     121        hProcess.Close(); #win32api.CloseHandle(hProcess)
    122122        fRc = True;
    123123    return fRc;
     
    187187    # Dispense with the thread handle.
    188188    try:
    189         win32api.CloseHandle(hThread);
     189        hThread.Close(); # win32api.CloseHandle(hThread);
    190190    except:
    191191        reporter.logXcpt();
     
    203203            False,
    204204            0);
    205         win32api.CloseHandle(hProcess);
     205        hProcess.Close(); # win32api.CloseHandle(hProcess);
    206206        hProcess = hProcessFullAccess;
    207207    except:
Note: See TracChangeset for help on using the changeset viewer.

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