Bugzilla bug 142345: fixed mistakes in _MD_OpenSharedMemory and
_MD_CloseSharedMemory. Thanks to Vladimir Golitsin <vgolitsin@mindspring.com> for the bug report and bug fix. git-svn-id: svn://10.0.0.236/trunk@121133 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -118,7 +118,7 @@ extern PRSharedMemory * _MD_OpenSharedMemory(
|
||||
PR_DELETE( shm );
|
||||
return( NULL );
|
||||
}
|
||||
if ( close(osfd == -1 )) {
|
||||
if ( close(osfd) == -1 ) {
|
||||
_PR_MD_MAP_CLOSE_ERROR( errno );
|
||||
PR_FREEIF( shm->ipcname );
|
||||
PR_DELETE( shm );
|
||||
@@ -243,7 +243,7 @@ extern PRStatus _MD_DeleteSharedMemory( const char *name )
|
||||
_PR_MD_MAP_OPEN_ERROR( errno );
|
||||
return( PR_FAILURE );
|
||||
}
|
||||
if ( close(osfd == -1 )) {
|
||||
if ( close(osfd) == -1 ) {
|
||||
_PR_MD_MAP_CLOSE_ERROR( errno );
|
||||
return( PR_FAILURE );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user