Ignore:
Timestamp:
Oct 17, 2005, 9:05:11 PM (20 years ago)
Author:
pr
Message:

Bart's fixes for bug 31

Location:
branches/branch-1-0/src/helpers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1-0/src/helpers/dosh.c

    r273 r300  
    43084308 *@@changed V0.9.14 (2001-08-03) [umoeller]: fixed potential queue leak
    43094309 *@@changed V0.9.14 (2001-08-03) [umoeller]: fixed memory leak in wait mode; added pusReturn to prototype
     4310 *@@changed V1.0.4  (2005-10-16) [jsmall  ]: inserted new 3rd parameter for session type
     4311 *@@changed V1.0.4  (2005-10-16) [jsmall  ]: changed code so when fWait = FALSE then session is started as independent, not as a child
    43104312 */
    43114313
    43124314APIRET doshQuickStartSession(PCSZ pcszPath,       // in: program to start
    43134315                             PCSZ pcszParams,     // in: parameters for program
     4316                             USHORT usSessionType,  // in: session type
    43144317                             BOOL fForeground,  // in: if TRUE, session will be in foreground
    43154318                             USHORT usPgmCtl,   // in: STARTDATA.PgmControl
     
    43394342
    43404343        SData.Length  = sizeof(STARTDATA);
    4341         SData.Related = SSF_RELATED_CHILD; //INDEPENDENT;
     4344        SData.Related = (fWait) ? SSF_RELATED_CHILD : SSF_RELATED_INDEPENDENT;
     4345                // V1.0.4 (2005-10-16) [jsmall]
    43424346        SData.FgBg    = (fForeground) ? SSF_FGBG_FORE : SSF_FGBG_BACK;
    43434347                // V0.9.3 (2000-05-03) [umoeller]
     
    43514355        SData.Environment = 0;
    43524356        SData.InheritOpt = SSF_INHERTOPT_PARENT;
    4353         SData.SessionType = SSF_TYPE_DEFAULT;
     4357        SData.SessionType = usSessionType;    // V1.0.4 (2005-10-16)  [jsmall]
    43544358        SData.IconFile = 0;
    43554359        SData.PgmHandle = 0;
  • branches/branch-1-0/src/helpers/syssound.c

    r264 r300  
    380380            // this is done by calling WinAlarm with 1000+index!
    381381            // sick stuff..
    382             WinAlarm(HWND_DESKTOP, usIndex+1000); // V0.9.6 (2000-10-16) [umoeller]
     382            WinAlarm(HWND_DESKTOP, WA_FILECHANGED + usIndex); // V0.9.6 (2000-10-16) [umoeller]
    383383
    384384    return brc;
     
    701701                                // notify MMPM/2 of the change... see sndWriteSoundData
    702702                                // V0.9.6 (2000-10-16) [umoeller]
    703                                 WinAlarm(HWND_DESKTOP, usIndex+1000);
     703                                WinAlarm(HWND_DESKTOP, WA_FILECHANGED + usIndex);
    704704                        }
    705705                    }
Note: See TracChangeset for help on using the changeset viewer.