Ignore:
Timestamp:
Nov 5, 1999, 6:50:30 PM (26 years ago)
Author:
achimha
Message:

source code cleanup, fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/spy.cpp

    r949 r1622  
    1 /* $Id: spy.cpp,v 1.6 1999-09-15 23:18:55 sandervl Exp $ */
     1/* $Id: spy.cpp,v 1.7 1999-11-05 17:50:29 achimha Exp $ */
    22
    33/*
     
    3838 APIRET rc;
    3939
    40    if (rc = DosOpenQueue(&pidServer, &hqQueue, "\\queues\\"Q_NAME))
     40   if ((rc = DosOpenQueue(&pidServer, &hqQueue, "\\queues\\"Q_NAME)) != 0)
    4141   {
    4242        dprintf(("InitSpyQueue: couldn't open spy queue rc=%d!", rc));
    4343        return FALSE;
    4444   }
    45    if (rc = DosAllocSharedMem((VOID **)&pvdQMemory,
     45   if ((rc = DosAllocSharedMem((VOID **)&pvdQMemory,
    4646                         NULL,
    4747                         Q_BUFFER_SIZE,
    48                          fALLOCSHR))
     48                         fALLOCSHR)) != 0)
    4949   {
    5050        dprintf(("InitSpyQueue: DosAllocSharedMem failed rc=%d", rc));
     
    9494   pvdQMemory[msgIndex].lParam = lParam;
    9595
    96    if (rc = DosWriteQueue(hqQueue,
     96   if ((rc = DosWriteQueue(hqQueue,
    9797                     Q_SPYMSG_WNDMSG,
    9898                     sizeof(Q_SPYMSG),
    9999                     &pvdQMemory[msgIndex],
    100                      0))
     100                     0)) != 0)
    101101   {
    102102        hqQueue = 0; //give up, server probably died
Note: See TracChangeset for help on using the changeset viewer.