Changeset 1622 for trunk/src


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

source code cleanup, fix warnings

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 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
  • trunk/src/user32/win32dlg.cpp

    r1597 r1622  
    1 /* $Id: win32dlg.cpp,v 1.31 1999-11-04 18:53:11 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.32 1999-11-05 17:50:30 achimha Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    756756        if (idResult)
    757757            return MAKELONG( idResult, DC_HASDEFID );
    758         if ((hwndDefId = findDefButton()))
     758        if ((hwndDefId = findDefButton()) != 0)
    759759            return MAKELONG( GetDlgCtrlID( hwndDefId ), DC_HASDEFID);
    760760
  • trunk/src/user32/windlg.cpp

    r1526 r1622  
    1 /* $Id: windlg.cpp,v 1.10 1999-10-31 01:14:44 sandervl Exp $ */
     1/* $Id: windlg.cpp,v 1.11 1999-11-05 17:50:30 achimha Exp $ */
    22/*
    33 * Win32 dialog apis for OS/2
     
    463463                  item, (LPARAM)buffer );
    464464
    465     if ((ret = (buffer[0] == '[')))  /* drive or directory */
     465    if ((ret = (buffer[0] == '[')) != 0)  /* drive or directory */
    466466    {
    467467        if (buffer[1] == '-')  /* drive */
     
    517517        char *p, *p2;
    518518        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;
    521521        if (p != spec)
    522522        {
     
    573573        /* Update the original file spec */
    574574        char *p = spec;
    575         while ((*orig_spec++ = *p++));
     575        while ((*orig_spec++ = *p++) != 0);
    576576    }
    577577
Note: See TracChangeset for help on using the changeset viewer.