]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_comcryption/lib/comcryptPriv.c
Security-55471.14.8.tar.gz
[apple/security.git] / libsecurity_comcryption / lib / comcryptPriv.c
index 56e9b5ac5d12e4535c0892177bc6a5daa65e189b..b584235e280906d93e99ce69ad7f3eee2e28d9a9 100644 (file)
@@ -495,16 +495,16 @@ void *ascMalloc(unsigned size)
        #ifdef  macintosh
 
        h = nil;
-       err = noErr;
+       err = errSecSuccess;
 
        h = NewHandleSys(size);         // system heap is not paged
        do{
                HLockHi(h);                     // will move low in system heap
                err = MemError();
-               if( err != noErr ) break;
+               if( err != errSecSuccess ) break;
                p = *h;
        }while(0);
-       if( err != noErr ){
+       if( err != errSecSuccess ){
            return NULL;
        }
        return p;