Changeset 28 for trunk/gui


Ignore:
Timestamp:
Apr 7, 2013, 5:15:42 AM (12 years ago)
Author:
Alex Taylor
Message:

Fix error in UniqueDeviceName when no devices exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/util/prntobj/prntobj.c

    r26 r28  
    6767            }
    6868            free( pBuf );
     69            if ( rc == NO_ERROR && !fUnique ) return 1;
    6970        }
    7071    }
    71     if ( rc == NO_ERROR && !fUnique ) return 1;
    72     else return rc;
     72    else if ( rc == NO_ERROR ) fUnique = TRUE;
     73    return rc;
    7374}
    7475
     
    108109    if (( rc = UniqueDeviceName( szDeviceName )) != NO_ERROR ) {
    109110        printf("Failed to get unique device name: rc=%u\n", rc);
    110         return 0;
     111        return rc;
    111112    }
    112113
Note: See TracChangeset for help on using the changeset viewer.