VirtualBox

Changeset 4476 in vbox for trunk/src/VBox/Runtime/generic


Ignore:
Timestamp:
Sep 1, 2007 1:30:34 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24075
Message:

fixed darwin and two really bad assertions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/env-generic.cpp

    r4475 r4476  
    3131#if !defined(RT_OS_WINDOWS)
    3232# include <unistd.h>
     33#endif
     34#ifdef RT_OS_DARWIN
     35# include <crt_externs.h>
    3336#endif
    3437#if defined(RT_OS_SOLARIS)
     
    290293{
    291294    AssertPtrReturn(pszVar, VERR_INVALID_POINTER);
    292     AssertPtrReturn(*pszVar, VERR_INVALID_PARAMETER);
     295    AssertReturn(*pszVar, VERR_INVALID_PARAMETER);
    293296    AssertPtrReturn(pszValue, VERR_INVALID_POINTER);
    294297
     
    395398{
    396399    AssertPtrReturn(pszVar, VERR_INVALID_POINTER);
    397     AssertPtrReturn(*pszVar, VERR_INVALID_PARAMETER);
     400    AssertReturn(*pszVar, VERR_INVALID_PARAMETER);
    398401
    399402    int rc;
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