VirtualBox

Changeset 3502 in vbox for trunk/src


Ignore:
Timestamp:
Jul 9, 2007 11:26:04 AM (18 years ago)
Author:
vboxsync
Message:

pszErrorMsg may be NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/log.cpp

    r3148 r3502  
    400400                rc = RTFileOpen(&pLogger->File, pLogger->pszFilename,
    401401                                RTFILE_O_WRITE | RTFILE_O_CREATE_REPLACE | RTFILE_O_DENY_WRITE);
    402                 if (RT_FAILURE(rc))
     402                if (RT_FAILURE(rc) && pszErrorMsg)
    403403                    RTStrPrintf(pszErrorMsg, cchErrorMsg, "could not open file '%s'", pLogger->pszFilename);
    404404            }
     
    416416                    return VINF_SUCCESS;
    417417                }
    418                 else
     418                else if (pszErrorMsg)
    419419                    RTStrPrintf(pszErrorMsg, cchErrorMsg, "failed to create sempahore");
    420420            }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette