VirtualBox

Changeset 16894 in vbox


Ignore:
Timestamp:
Feb 18, 2009 12:04:48 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
43014
Message:

VBoxSDLMain-darwin.m: assert->Assert, eprintf/ld_classic issue in 10.6. Also moved the chdir out of the assert, baka.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDLMain-darwin.m

    r5493 r16894  
    1010#import <sys/param.h> /* for MAXPATHLEN */
    1111#import <unistd.h>
     12#import <iprt/assert.h>
    1213
    1314/* For some reaon, Apple removed setAppleMenu from the headers in 10.4,
     
    9192                CFURLRef url2 = CFURLCreateCopyDeletingLastPathComponent(0, url);
    9293                if (CFURLGetFileSystemRepresentation(url2, true, (UInt8 *)parentdir, MAXPATHLEN)) {
    93                 assert ( chdir (parentdir) == 0 );   /* chdir to the binary app's parent */
     94                int rc = chdir(parentdir);   /* chdir to the binary app's parent */
     95                Assert(rc == 0);
    9496                }
    9597                CFRelease(url);
Note: See TracChangeset for help on using the changeset viewer.

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