Changeset 153 for trunk/src/helpers/prfh.c
- Timestamp:
- Apr 14, 2002, 1:42:05 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/prfh.c
r108 r153 526 526 * 527 527 *@@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 531 APIRET prfhSetUserProfile(HAB hab, 532 const char *pcszUserProfile) // in: new user profile (.INI) 533 { 534 APIRET arc = NO_ERROR; 535 534 536 // find out current profile names 535 537 PRFPROFILE Profiles; … … 553 555 Profiles.pszUserName = (PSZ)pcszUserProfile; 554 556 Profiles.cchUserName = strlen(pcszUserProfile) + 1; 555 brc = PrfReset(hab, &Profiles); 557 if (!PrfReset(hab, &Profiles)) 558 arc = PRFERR_RESET; 556 559 free(Profiles.pszSysName); 557 560 } 561 else 562 arc = PRFERR_QUERY; 558 563 } 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.