Commit 73606b84 authored by Jondy Zhao's avatar Jondy Zhao

Change the order of elements in the return value of netuse.userInfo()

parent b1f1b6f0
...@@ -124,7 +124,7 @@ netuse_user_info(PyObject *self, PyObject *args) ...@@ -124,7 +124,7 @@ netuse_user_info(PyObject *self, PyObject *args)
// //
if (pBuf != NULL) { if (pBuf != NULL) {
NetApiBufferFree(pBuf); NetApiBufferFree(pBuf);
return Py_BuildValue("sss", logonuser, logondomain, logonserver); return Py_BuildValue("sss", logonserver, logondomain, logonuser);
} }
PyErr_SetString(PyExc_RuntimeError, "No logon user information"); PyErr_SetString(PyExc_RuntimeError, "No logon user information");
...@@ -323,7 +323,7 @@ static PyMethodDef NetUseMethods[] = { ...@@ -323,7 +323,7 @@ static PyMethodDef NetUseMethods[] = {
( (
"userInfo()\n\n" "userInfo()\n\n"
"Get the logon user information, return a tuple:\n" "Get the logon user information, return a tuple:\n"
"(user, domain, server).\n" "(server, domain, user).\n"
) )
}, },
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment