Changeset 1878

Show
Ignore:
Timestamp:
31.01.2001 05:32:59 (19 years ago)
Author:
cs025
Message:

Improvements to reduce errors reported by VC++ 6.0, and extended fixes in
gsProgman on fixing Windows 95 problems.

Location:
trunk/gsinstaller
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/gsPlatform.cpp

    r1763 r1878  
    155155      LocalFree(aclData); 
    156156      FreeSid(adminId); 
    157       return result; 
     157      return (result != 0); 
    158158    } 
    159159  return true; 
     
    188188    } 
    189189    } 
    190   return ExitWindowsEx(EWX_REBOOT | EWX_FORCE, 0); 
     190  return (ExitWindowsEx(EWX_REBOOT | EWX_FORCE, 0) != 0); 
    191191} 
    192192 
  • trunk/gsinstaller/gsProgman.cpp

    r1672 r1878  
    247247      FilePath *fullPath; 
    248248 
    249       if (this->platform->isUserAdministrator()) 
     249      if (this->platform->isWindowsNT() && this->platform->isUserAdministrator()) 
    250250    { 
    251251#if defined (__GNUC__) 
     
    352352      LPITEMIDLIST pidl; 
    353353       
    354       if (this->platform->isUserAdministrator()) 
     354      if (this->platform->isWindowsNT() && this->platform->isUserAdministrator()) 
    355355    { 
    356356#if defined (__GNUC__) 
     
    414414    // if the user is adminstrator, take the folder from the common programs folder 
    415415    // (in the "All Users" profile) 
    416     if (this->platform->isUserAdministrator()) 
     416    if (this->platform->isWindowsNT() && this->platform->isUserAdministrator()) 
    417417    { 
    418418#if defined (__GNUC__)