Commit 3aeb2f67 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

credui: Enable compilation with long types.

parent a4087cec
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = credui.dll MODULE = credui.dll
IMPORTLIB = credui IMPORTLIB = credui
IMPORTS = comctl32 user32 advapi32 IMPORTS = comctl32 user32 advapi32
......
...@@ -67,7 +67,7 @@ static CRITICAL_SECTION csPendingCredentials = { &critsect_debug, -1, 0, 0, 0, 0 ...@@ -67,7 +67,7 @@ static CRITICAL_SECTION csPendingCredentials = { &critsect_debug, -1, 0, 0, 0, 0
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{ {
struct pending_credentials *entry, *cursor2; struct pending_credentials *entry, *cursor2;
TRACE("(0x%p, %d, %p)\n",hinstDLL,fdwReason,lpvReserved); TRACE("(0x%p, %ld, %p)\n",hinstDLL,fdwReason,lpvReserved);
switch (fdwReason) switch (fdwReason)
{ {
...@@ -120,7 +120,7 @@ static DWORD save_credentials(PCWSTR pszTargetName, PCWSTR pszUsername, ...@@ -120,7 +120,7 @@ static DWORD save_credentials(PCWSTR pszTargetName, PCWSTR pszUsername,
else else
{ {
DWORD ret = GetLastError(); DWORD ret = GetLastError();
ERR("CredWriteW failed with error %d\n", ret); ERR("CredWriteW failed with error %ld\n", ret);
return ret; return ret;
} }
} }
...@@ -566,7 +566,7 @@ static BOOL find_existing_credential(const WCHAR *target, WCHAR *username, ULONG ...@@ -566,7 +566,7 @@ static BOOL find_existing_credential(const WCHAR *target, WCHAR *username, ULONG
if (credentials[i]->Type != CRED_TYPE_DOMAIN_PASSWORD && if (credentials[i]->Type != CRED_TYPE_DOMAIN_PASSWORD &&
credentials[i]->Type != CRED_TYPE_GENERIC) credentials[i]->Type != CRED_TYPE_GENERIC)
{ {
FIXME("no support for type %u credentials\n", credentials[i]->Type); FIXME("no support for type %lu credentials\n", credentials[i]->Type);
continue; continue;
} }
if ((!*username || !lstrcmpW(username, credentials[i]->UserName)) && if ((!*username || !lstrcmpW(username, credentials[i]->UserName)) &&
...@@ -604,7 +604,7 @@ DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW pUIInfo, ...@@ -604,7 +604,7 @@ DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW pUIInfo,
struct cred_dialog_params params; struct cred_dialog_params params;
DWORD result = ERROR_SUCCESS; DWORD result = ERROR_SUCCESS;
TRACE("(%p, %s, %p, %d, %s, %d, %p, %d, %p, 0x%08x)\n", pUIInfo, TRACE("(%p, %s, %p, %ld, %s, %ld, %p, %ld, %p, 0x%08lx)\n", pUIInfo,
debugstr_w(pszTargetName), Reserved, dwAuthError, debugstr_w(pszUsername), debugstr_w(pszTargetName), Reserved, dwAuthError, debugstr_w(pszUsername),
ulUsernameMaxChars, pszPassword, ulPasswordMaxChars, pfSave, dwFlags); ulUsernameMaxChars, pszPassword, ulPasswordMaxChars, pfSave, dwFlags);
...@@ -758,7 +758,7 @@ DWORD WINAPI CredUIParseUserNameW(PCWSTR pszUserName, PWSTR pszUser, ...@@ -758,7 +758,7 @@ DWORD WINAPI CredUIParseUserNameW(PCWSTR pszUserName, PWSTR pszUser,
{ {
PWSTR p; PWSTR p;
TRACE("(%s, %p, %d, %p, %d)\n", debugstr_w(pszUserName), pszUser, TRACE("(%s, %p, %ld, %p, %ld)\n", debugstr_w(pszUserName), pszUser,
ulMaxUserChars, pszDomain, ulMaxDomainChars); ulMaxUserChars, pszDomain, ulMaxDomainChars);
if (!pszUserName || !pszUser || !ulMaxUserChars || !pszDomain || if (!pszUserName || !pszUser || !ulMaxUserChars || !pszDomain ||
...@@ -873,7 +873,7 @@ ULONG SEC_ENTRY SspiPromptForCredentialsW( PCWSTR target, void *info, ...@@ -873,7 +873,7 @@ ULONG SEC_ENTRY SspiPromptForCredentialsW( PCWSTR target, void *info,
CREDUI_INFOW *cred_info = info; CREDUI_INFOW *cred_info = info;
SEC_WINNT_AUTH_IDENTITY_W *id = input_id; SEC_WINNT_AUTH_IDENTITY_W *id = input_id;
FIXME( "(%s, %p, %u, %s, %p, %p, %p, %x) stub\n", debugstr_w(target), info, FIXME( "(%s, %p, %lu, %s, %p, %p, %p, %lx) stub\n", debugstr_w(target), info,
error, debugstr_w(package), input_id, output_id, save, sspi_flags ); error, debugstr_w(package), input_id, output_id, save, sspi_flags );
if (!target) return ERROR_INVALID_PARAMETER; if (!target) return ERROR_INVALID_PARAMETER;
...@@ -967,7 +967,7 @@ DWORD WINAPI CredUIPromptForWindowsCredentialsW( CREDUI_INFOW *info, DWORD error ...@@ -967,7 +967,7 @@ DWORD WINAPI CredUIPromptForWindowsCredentialsW( CREDUI_INFOW *info, DWORD error
const void *in_buf, ULONG in_buf_size, void **out_buf, const void *in_buf, ULONG in_buf_size, void **out_buf,
ULONG *out_buf_size, BOOL *save, DWORD flags ) ULONG *out_buf_size, BOOL *save, DWORD flags )
{ {
FIXME( "(%p, %u, %p, %p, %u, %p, %p, %p, %08x) stub\n", info, error, package, in_buf, in_buf_size, FIXME( "(%p, %lu, %p, %p, %lu, %p, %p, %p, %08lx) stub\n", info, error, package, in_buf, in_buf_size,
out_buf, out_buf_size, save, flags ); out_buf, out_buf_size, save, flags );
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
...@@ -978,7 +978,7 @@ DWORD WINAPI CredUIPromptForWindowsCredentialsW( CREDUI_INFOW *info, DWORD error ...@@ -978,7 +978,7 @@ DWORD WINAPI CredUIPromptForWindowsCredentialsW( CREDUI_INFOW *info, DWORD error
BOOL WINAPI CredPackAuthenticationBufferW( DWORD flags, WCHAR *username, WCHAR *password, BYTE *buf, BOOL WINAPI CredPackAuthenticationBufferW( DWORD flags, WCHAR *username, WCHAR *password, BYTE *buf,
DWORD *size ) DWORD *size )
{ {
FIXME( "(%08x, %s, %p, %p, %p) stub\n", flags, debugstr_w(username), password, buf, size ); FIXME( "(%08lx, %s, %p, %p, %p) stub\n", flags, debugstr_w(username), password, buf, size );
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
...@@ -989,7 +989,7 @@ BOOL WINAPI CredUnPackAuthenticationBufferW( DWORD flags, void *buf, DWORD size ...@@ -989,7 +989,7 @@ BOOL WINAPI CredUnPackAuthenticationBufferW( DWORD flags, void *buf, DWORD size
DWORD *len_username, WCHAR *domain, DWORD *len_domain, DWORD *len_username, WCHAR *domain, DWORD *len_domain,
WCHAR *password, DWORD *len_password ) WCHAR *password, DWORD *len_password )
{ {
FIXME( "(%08x, %p, %u, %p, %p, %p, %p, %p, %p) stub\n", flags, buf, size, username, len_username, FIXME( "(%08lx, %p, %lu, %p, %p, %p, %p, %p, %p) stub\n", flags, buf, size, username, len_username,
domain, len_domain, password, len_password ); domain, len_domain, password, len_password );
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
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