[pywin32-checkins] pywin32/win32/src win32security.i,1.48,1.49
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2008-12-07 18:00:46
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv8901 Modified Files: win32security.i Log Message: Fix crash in GetNamedSecurityInfo Index: win32security.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32security.i,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** win32security.i 13 Nov 2008 04:04:51 -0000 1.48 --- win32security.i 7 Dec 2008 18:00:40 -0000 1.49 *************** *** 1551,1556 **** err=GetNamedSecurityInfoW(ObjectName, object_type, required_info, NULL, NULL, NULL, NULL, &pSD); ! if (err==ERROR_SUCCESS) ! ret=new PySECURITY_DESCRIPTOR(pSD); else PyWin_SetAPIError("GetNamedSecurityInfo",err); --- 1551,1564 ---- err=GetNamedSecurityInfoW(ObjectName, object_type, required_info, NULL, NULL, NULL, NULL, &pSD); ! if (err==ERROR_SUCCESS){ ! // When retrieving security for an administrative share (C$, D$, etc) the returned security descriptor ! // may be NULL even though the return code indicates success. ! if (pSD) ! ret=new PySECURITY_DESCRIPTOR(pSD); ! else{ ! Py_INCREF(Py_None); ! ret = Py_None; ! } ! } else PyWin_SetAPIError("GetNamedSecurityInfo",err); |