VirtualBox

Changeset 93231 in vbox for trunk/src


Ignore:
Timestamp:
Jan 14, 2022 2:05:23 AM (3 years ago)
Author:
vboxsync
Message:

Main/Unattended/os2_util: Fix wait method selection, don't always go for the queue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-helper-apps/os2/os2_util.c

    r93149 r93231  
    3636#define IS_BLANK(ch)  ((ch) == ' ' || (ch) == '\t' || (ch) == '\r' || (ch) == '\n')
    3737
     38/** NIL HQUEUE value. */
     39#define NIL_HQUEUE  (~(HQUEUE)0)
     40
    3841
    3942/*********************************************************************************************************************************
     
    282285     * Can we use DosCwait?
    283286     */
    284     if (idSession == 0 && hQueue == NULL)
     287    if (hQueue == NIL_HQUEUE)
    285288    {
    286289        for (;;)
     
    598601    USHORT      idSession      = 0;
    599602    PID         pidChild       = 0;
    600     HQUEUE      hQueue         = ~(HQUEUE)0;
     603    HQUEUE      hQueue         = NIL_HQUEUE;
    601604    CHAR        szQueueName[64];
    602605    unsigned    cAsZero        = 0;
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