Changeset 7278 for trunk/tools


Ignore:
Timestamp:
Oct 31, 2001, 10:46:49 PM (24 years ago)
Author:
bird
Message:

Dirty fix for Ctrl-C on wait client.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/CmdQd/CmdQd.c

    r6886 r7278  
    1 /* $Id: CmdQd.c,v 1.7 2001-09-30 05:26:52 bird Exp $
     1/* $Id: CmdQd.c,v 1.8 2001-10-31 21:46:49 bird Exp $
    22 *
    33 * Command Queue Daemon / Client.
     
    628628                    rc = shrmemSendDaemon(TRUE);
    629629                } while (!rc && fMore);
     630
     631                /*
     632                 * Check if the wait client died.
     633                 */
     634                if (rc == ERROR_ALREADY_POSTED) /* seems like this is the rc we get. */
     635                {
     636                    /*
     637                     * BUGBUG: This code is really fishy, but I'm to tired to make a real fix now.
     638                     *         Hopefully this solves my current problem.
     639                     */
     640                    ULONG   ulDummy;
     641                    rc = DosRequestMutexSem(pShrMem->hmtx, 500);
     642                    rc = DosResetEventSem(pShrMem->hevClient, &ulDummy);
     643                    pShrMem->enmMsgType = msgUnknown;
     644                    rc = shrmemSendDaemon(TRUE);
     645                }
    630646                break;
    631647            }
     
    10961112                {   /* search path */
    10971113                    char    szResult[CCHMAXPATH];
    1098                     rc = DosSearchPath(SEARCH_IGNORENETERRS, pszPath, pszArg, &szResult[0] , sizeof(szResult));
     1114                    rc = DosSearchPath(SEARCH_IGNORENETERRS, (PSZ)pszPath, pszArg, &szResult[0] , sizeof(szResult));
    10991115                    if (!rc)
    11001116                    {
     
    12291245{
    12301246    FILESTATUS3     fsts3;
    1231     return DosQueryPathInfo(pszFilename, FIL_STANDARD, &fsts3, sizeof(fsts3));
     1247    return DosQueryPathInfo((PSZ)pszFilename, FIL_STANDARD, &fsts3, sizeof(fsts3));
    12321248}
    12331249
Note: See TracChangeset for help on using the changeset viewer.