Ticket #169: SafeDosStartSession.diff

File SafeDosStartSession.diff, 689 bytes (added by guest, 17 years ago)

Likely fix (without trying to compile it)

  • SafeDosStartSession.c

    APIRET APIENTRY SafeDosStartSession(PST  
    158158    psd->PgmInputs = PgmInputs;
    159159    psd->Environment = Environment;
    160160    psd->IconFile = IconFile;
    161161
    162162    /* Save returned values */
    163163    if (ObjectBuffLen)
    164164        memcpy(ObjectBuffer, psd->ObjectBuffer, ObjectBuffLen);
    165165    psd->ObjectBuffer = ObjectBuffer;
    166     *pulIdSession = ulIdSession;
    167     *ppid = pid;
     166    if (pulIdSession)
     167        *pulIdSession = ulIdSession;
     168    if (ppid)
     169        *ppid = pid;
    168170
    169171    if (pchSafeMem) free( pchSafeMem );
    170172    return rc;
    171173
    172174}
    173175