File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -560,19 +560,25 @@ summary_getproperty(msiobj* si, PyObject *args)
560
560
}
561
561
562
562
switch (type ) {
563
- case VT_I2 : case VT_I4 :
564
- return PyLong_FromLong (ival );
563
+ case VT_I2 :
564
+ case VT_I4 :
565
+ result = PyLong_FromLong (ival );
566
+ break ;
565
567
case VT_FILETIME :
566
568
PyErr_SetString (PyExc_NotImplementedError , "FILETIME result" );
567
- return NULL ;
569
+ result = NULL ;
570
+ break ;
568
571
case VT_LPSTR :
569
572
result = PyBytes_FromStringAndSize (sval , ssize );
570
- if (sval != sbuf )
571
- free (sval );
572
- return result ;
573
+ break ;
574
+ default :
575
+ PyErr_Format (PyExc_NotImplementedError , "result of type %d" , type );
576
+ result = NULL ;
577
+ break ;
573
578
}
574
- PyErr_Format (PyExc_NotImplementedError , "result of type %d" , type );
575
- return NULL ;
579
+ if (sval != sbuf )
580
+ free (sval );
581
+ return result ;
576
582
}
577
583
578
584
static PyObject *
You can’t perform that action at this time.
0 commit comments