Ignore:
Timestamp:
Apr 14, 2002, 1:42:05 AM (23 years ago)
Author:
umoeller
Message:

Lots of changes from the last three weeks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/prfh.c

    r108 r153  
    526526 *
    527527 *@@added V0.9.4 (2000-07-19) [umoeller]
    528  */
    529 
    530 BOOL prfhSetUserProfile(HAB hab,
    531                         const char *pcszUserProfile)     // in: new user profile (.INI)
    532 {
    533     BOOL    brc = FALSE;
     528 *@@changed V0.9.19 (2002-04-02) [umoeller]: now returning APIRET
     529 */
     530
     531APIRET prfhSetUserProfile(HAB hab,
     532                          const char *pcszUserProfile)     // in: new user profile (.INI)
     533{
     534    APIRET arc = NO_ERROR;
     535
    534536    // find out current profile names
    535537    PRFPROFILE Profiles;
     
    553555                Profiles.pszUserName = (PSZ)pcszUserProfile;
    554556                Profiles.cchUserName = strlen(pcszUserProfile) + 1;
    555                 brc = PrfReset(hab, &Profiles);
     557                if (!PrfReset(hab, &Profiles))
     558                    arc = PRFERR_RESET;
    556559                free(Profiles.pszSysName);
    557560            }
     561            else
     562                arc = PRFERR_QUERY;
    558563        }
    559     }
    560 
    561     return (brc);
    562 }
    563 
    564 
     564        else
     565            arc = PRFERR_QUERY;
     566    }
     567    else
     568        arc = PRFERR_QUERY;
     569
     570    return (arc);
     571}
     572
     573
Note: See TracChangeset for help on using the changeset viewer.