VirtualBox

Changeset 95805 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 25, 2022 12:37:43 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/r3/process.cpp: Call GetCurrentProcessId directly instead of _getpid() on windows. bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/process.cpp

    r93115 r95805  
    3838
    3939#ifdef RT_OS_WINDOWS
    40 # include <process.h>
     40# include <iprt/win/windows.h>
    4141#else
    4242# include <unistd.h>
     
    5757    /* lazy init. */
    5858#ifdef _MSC_VER
    59     Self = _getpid(); /* crappy ansi compiler */
     59    Self = GetCurrentProcessId(); /* since NT 3.1, not 3.51+ as listed on geoffchappell.com */
    6060#else
    6161    Self = getpid();
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