[pywin32-checkins] pywin32/win32/src win32security.i, 1.47.2.2, 1.47.2.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2008-12-09 07:58:06
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21257 Modified Files: Tag: py3k win32security.i Log Message: Fix crash in GetNamedSecurityInfo (from main branch) Index: win32security.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32security.i,v retrieving revision 1.47.2.2 retrieving revision 1.47.2.3 diff -C2 -d -r1.47.2.2 -r1.47.2.3 *** win32security.i 3 Oct 2008 22:08:47 -0000 1.47.2.2 --- win32security.i 9 Dec 2008 07:58:00 -0000 1.47.2.3 *************** *** 1563,1568 **** 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); --- 1563,1576 ---- 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); |