Skip to content

Commit 970dc52

Browse files
authored
Fix bad import (#112)
1 parent bd2a013 commit 970dc52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

win32ctypes/core/ctypes/_authentication.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
BOOL, DWORD, FILETIME, LPCWSTR)
1212

1313
from win32ctypes.core.compat import is_text
14-
from ._common import LPBYTE, _PyBytes_FromStringAndSize, PDWORD
14+
from ._common import LPBYTE, _PyBytes_FromStringAndSize
1515
from ._util import function_factory, check_false_factory, dlls
1616
from ._nl_support import _GetACP
1717

@@ -120,7 +120,7 @@ def _CredEnumerate(Filter, Flags, Count, pppCredential):
120120

121121
_BaseCredEnumerate = function_factory(
122122
dlls.advapi32.CredEnumerateW,
123-
[LPCWSTR, DWORD, PDWORD, PPPCREDENTIAL],
123+
[LPCWSTR, DWORD, POINTER(DWORD), PPPCREDENTIAL],
124124
BOOL,
125125
check_false_factory("CredEnumerate"))
126126

win32ctypes/pywin32/win32cred.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def CredEnumerate(Filter=None, Flags=0):
121121
_common.ffi.cast(f"PCREDENTIAL*[{count}]", pppcreds))
122122
else:
123123
import ctypes
124-
count = ctypes.DWORD()
124+
count = _authentication.DWORD()
125125
# Create a mutable pointer variable
126126
mem = ctypes.create_string_buffer(1)
127127
pppcreds = _common.cast(

0 commit comments

Comments
 (0)