Changeset 1622 for trunk/src/user32/spy.cpp
- Timestamp:
- Nov 5, 1999, 6:50:30 PM (26 years ago)
- 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 sandervlExp $ */1 /* $Id: spy.cpp,v 1.7 1999-11-05 17:50:29 achimha Exp $ */ 2 2 3 3 /* … … 38 38 APIRET rc; 39 39 40 if ( rc = DosOpenQueue(&pidServer, &hqQueue, "\\queues\\"Q_NAME))40 if ((rc = DosOpenQueue(&pidServer, &hqQueue, "\\queues\\"Q_NAME)) != 0) 41 41 { 42 42 dprintf(("InitSpyQueue: couldn't open spy queue rc=%d!", rc)); 43 43 return FALSE; 44 44 } 45 if ( rc = DosAllocSharedMem((VOID **)&pvdQMemory,45 if ((rc = DosAllocSharedMem((VOID **)&pvdQMemory, 46 46 NULL, 47 47 Q_BUFFER_SIZE, 48 fALLOCSHR)) 48 fALLOCSHR)) != 0) 49 49 { 50 50 dprintf(("InitSpyQueue: DosAllocSharedMem failed rc=%d", rc)); … … 94 94 pvdQMemory[msgIndex].lParam = lParam; 95 95 96 if ( rc = DosWriteQueue(hqQueue,96 if ((rc = DosWriteQueue(hqQueue, 97 97 Q_SPYMSG_WNDMSG, 98 98 sizeof(Q_SPYMSG), 99 99 &pvdQMemory[msgIndex], 100 0)) 100 0)) != 0) 101 101 { 102 102 hqQueue = 0; //give up, server probably died
Note:
See TracChangeset
for help on using the changeset viewer.