[NETAPI32]

- Don't try to close the deleted user handle in NetUserDel

svn path=/trunk/; revision=68879
This commit is contained in:
Thomas Faber 2015-08-31 13:44:57 +00:00
parent 65783dfa91
commit c51b0c1318

View file

@ -2376,6 +2376,9 @@ NetUserDel(LPCWSTR servername,
goto done;
}
/* A successful delete invalidates the handle */
UserHandle = NULL;
done:
if (UserHandle != NULL)
SamCloseHandle(UserHandle);