From a512381357cbb3750573b1e8ebda5b79c8e37132 Mon Sep 17 00:00:00 2001 From: Aviv Bergman Date: Wed, 13 Mar 2024 17:21:01 +1100 Subject: [PATCH] fixed tabs & format flag --- com/win32comext/mapi/src/PyIMsgStore.i | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/com/win32comext/mapi/src/PyIMsgStore.i b/com/win32comext/mapi/src/PyIMsgStore.i index e000b174fb..45660ce235 100644 --- a/com/win32comext/mapi/src/PyIMsgStore.i +++ b/com/win32comext/mapi/src/PyIMsgStore.i @@ -84,21 +84,21 @@ PyObject *PyIMsgStore::OpenEntry(PyObject *self, PyObject *args) // @pyswig |StoreLogoff|Enables the orderly logoff of the message store. PyObject *PyIMsgStore::StoreLogoff(PyObject *self, PyObject *args) { - HRESULT _result; - unsigned long flags; + HRESULT _result; + unsigned long flags; IMsgStore *_swig_self; if ((_swig_self=GetI(self))==NULL) return NULL; // @pyparm int|flags||Bitmask of flags that controls how the message store is closed. - if(!PyArg_ParseTuple(args,"l:StoreLogoff", &flags)) - return NULL; + if(!PyArg_ParseTuple(args,"k:StoreLogoff", &flags)) + return NULL; Py_BEGIN_ALLOW_THREADS - _result = (HRESULT )_swig_self->StoreLogoff(&flags); + _result = (HRESULT )_swig_self->StoreLogoff(&flags); Py_END_ALLOW_THREADS - if (FAILED(_result)) { - return OleSetOleError(_result); - } + if (FAILED(_result)) { + return OleSetOleError(_result); + } return PyLong_FromLong(flags); }