X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195..e3d3b979fd185d8303f28a937baa53a187fb8c7d:/libsecurity_comcryption/lib/comcryptPriv.c?ds=inline diff --git a/libsecurity_comcryption/lib/comcryptPriv.c b/libsecurity_comcryption/lib/comcryptPriv.c index 56e9b5ac..b584235e 100644 --- a/libsecurity_comcryption/lib/comcryptPriv.c +++ b/libsecurity_comcryption/lib/comcryptPriv.c @@ -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;