- Timestamp:
- Nov 5, 1999, 6:50:30 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 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 -
trunk/src/user32/win32dlg.cpp
r1597 r1622 1 /* $Id: win32dlg.cpp,v 1.3 1 1999-11-04 18:53:11 sandervlExp $ */1 /* $Id: win32dlg.cpp,v 1.32 1999-11-05 17:50:30 achimha Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 756 756 if (idResult) 757 757 return MAKELONG( idResult, DC_HASDEFID ); 758 if ((hwndDefId = findDefButton()) )758 if ((hwndDefId = findDefButton()) != 0) 759 759 return MAKELONG( GetDlgCtrlID( hwndDefId ), DC_HASDEFID); 760 760 -
trunk/src/user32/windlg.cpp
r1526 r1622 1 /* $Id: windlg.cpp,v 1.1 0 1999-10-31 01:14:44 sandervlExp $ */1 /* $Id: windlg.cpp,v 1.11 1999-11-05 17:50:30 achimha Exp $ */ 2 2 /* 3 3 * Win32 dialog apis for OS/2 … … 463 463 item, (LPARAM)buffer ); 464 464 465 if ((ret = (buffer[0] == '[')) ) /* drive or directory */465 if ((ret = (buffer[0] == '[')) != 0) /* drive or directory */ 466 466 { 467 467 if (buffer[1] == '-') /* drive */ … … 517 517 char *p, *p2; 518 518 p = spec; 519 if ((p2 = strrchr( p, '\\' )) ) p = p2;520 if ((p2 = strrchr( p, '/' )) ) p = p2;519 if ((p2 = strrchr( p, '\\' )) != 0) p = p2; 520 if ((p2 = strrchr( p, '/' )) != 0) p = p2; 521 521 if (p != spec) 522 522 { … … 573 573 /* Update the original file spec */ 574 574 char *p = spec; 575 while ((*orig_spec++ = *p++) );575 while ((*orig_spec++ = *p++) != 0); 576 576 } 577 577
Note:
See TracChangeset
for help on using the changeset viewer.