>From 986b9f851665898f6f5ccec9087d0c329daa72a0 Mon Sep 17 00:00:00 2001
From: George Popoff <ambulance@etersoft.ru>
Date: Wed, 11 Oct 2017 14:25:15 +0300
Subject: [PATCH 4/8] add wincred.h include for missing SecHandle definition

---
 wine/dlls/advapi32/advapi32_misc.h  | 1 +
 wine/dlls/advapi32/tests/lsa.c      | 1 +
 wine/dlls/advapi32/tests/security.c | 1 +
 wine/dlls/bcrypt/bcrypt_main.c      | 1 +
 wine/dlls/jscript/math.c            | 1 +
 wine/dlls/kerberos/krb5_ap.c        | 1 +
 wine/dlls/msvcrt/misc.c             | 1 +
 wine/dlls/netapi32/netapi32.c       | 1 +
 wine/dlls/rpcrt4/rpcrt4_main.c      | 1 +
 wine/dlls/rpcrt4/tests/rpc.c        | 1 +
 wine/dlls/schannel/lsamode.c        | 1 +
 wine/dlls/schannel/tests/main.c     | 1 +
 wine/dlls/schannel/usermode.c       | 1 +
 wine/dlls/scrrun/filesystem.c       | 1 +
 wine/dlls/secur32/lsa.c             | 1 +
 wine/dlls/secur32/secur32.c         | 1 +
 wine/dlls/wbemprox/builtin.c        | 1 +
 wine/programs/services/rpc.c        | 1 +
 18 files changed, 18 insertions(+)

diff --git a/wine/dlls/advapi32/advapi32_misc.h b/wine/dlls/advapi32/advapi32_misc.h
index d116ecb..b5858f1 100644
--- a/wine/dlls/advapi32/advapi32_misc.h
+++ b/wine/dlls/advapi32/advapi32_misc.h
@@ -20,6 +20,7 @@
 #ifndef __WINE_ADVAPI32MISC_H
 #define __WINE_ADVAPI32MISC_H
 
+#include "wincred.h"
 #include "ntsecapi.h"
 #include "winsvc.h"
 #include "winnls.h"
diff --git a/wine/dlls/advapi32/tests/lsa.c b/wine/dlls/advapi32/tests/lsa.c
index 4daf75f..377b611 100644
--- a/wine/dlls/advapi32/tests/lsa.c
+++ b/wine/dlls/advapi32/tests/lsa.c
@@ -25,6 +25,7 @@
 #define WIN32_NO_STATUS
 #include "windef.h"
 #include "winbase.h"
+#include "wincred.h"
 #include "winreg.h"
 #include "ntsecapi.h"
 #include "sddl.h"
diff --git a/wine/dlls/advapi32/tests/security.c b/wine/dlls/advapi32/tests/security.c
index 4121908..04be01b 100644
--- a/wine/dlls/advapi32/tests/security.c
+++ b/wine/dlls/advapi32/tests/security.c
@@ -26,6 +26,7 @@
 #define WIN32_NO_STATUS
 #include "windef.h"
 #include "winbase.h"
+#include "wincred.h"
 #include "winerror.h"
 #include "winternl.h"
 #include "aclapi.h"
diff --git a/wine/dlls/bcrypt/bcrypt_main.c b/wine/dlls/bcrypt/bcrypt_main.c
index b631128..d0ae3f5 100644
--- a/wine/dlls/bcrypt/bcrypt_main.c
+++ b/wine/dlls/bcrypt/bcrypt_main.c
@@ -33,6 +33,7 @@
 #define WIN32_NO_STATUS
 #include "windef.h"
 #include "winbase.h"
+#include "wincred.h"
 #include "ntsecapi.h"
 #include "bcrypt.h"
 
diff --git a/wine/dlls/jscript/math.c b/wine/dlls/jscript/math.c
index ef906f5..dedadeb 100644
--- a/wine/dlls/jscript/math.c
+++ b/wine/dlls/jscript/math.c
@@ -24,6 +24,7 @@
 #include <limits.h>
 
 #include "jscript.h"
+#include "wincred.h"
 #include "ntsecapi.h"
 
 #include "wine/debug.h"
diff --git a/wine/dlls/kerberos/krb5_ap.c b/wine/dlls/kerberos/krb5_ap.c
index 7ff8c2a..cb9408b 100644
--- a/wine/dlls/kerberos/krb5_ap.c
+++ b/wine/dlls/kerberos/krb5_ap.c
@@ -31,6 +31,7 @@
 #define WIN32_NO_STATUS
 #include "windef.h"
 #include "winbase.h"
+#include "wincred.h"
 #include "winnls.h"
 #include "sspi.h"
 #include "ntsecapi.h"
diff --git a/wine/dlls/msvcrt/misc.c b/wine/dlls/msvcrt/misc.c
index b9dadac..179e883 100644
--- a/wine/dlls/msvcrt/misc.c
+++ b/wine/dlls/msvcrt/misc.c
@@ -25,6 +25,7 @@
 
 #include "msvcrt.h"
 #include "wine/debug.h"
+#include "wincred.h"
 #include "ntsecapi.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
diff --git a/wine/dlls/netapi32/netapi32.c b/wine/dlls/netapi32/netapi32.c
index 278d452..c2cea24 100644
--- a/wine/dlls/netapi32/netapi32.c
+++ b/wine/dlls/netapi32/netapi32.c
@@ -37,6 +37,7 @@
 #define WIN32_NO_STATUS
 #include "windef.h"
 #include "winbase.h"
+#include "wincred.h"
 #include "lm.h"
 #include "lmaccess.h"
 #include "lmat.h"
diff --git a/wine/dlls/rpcrt4/rpcrt4_main.c b/wine/dlls/rpcrt4/rpcrt4_main.c
index d5d349d..4775d68 100644
--- a/wine/dlls/rpcrt4/rpcrt4_main.c
+++ b/wine/dlls/rpcrt4/rpcrt4_main.c
@@ -40,6 +40,7 @@
 #include "windef.h"
 #include "winerror.h"
 #include "winbase.h"
+#include "wincred.h"
 #include "winuser.h"
 #include "winnt.h"
 #include "winternl.h"
diff --git a/wine/dlls/rpcrt4/tests/rpc.c b/wine/dlls/rpcrt4/tests/rpc.c
index f026e99..9ed2584 100644
--- a/wine/dlls/rpcrt4/tests/rpc.c
+++ b/wine/dlls/rpcrt4/tests/rpc.c
@@ -28,6 +28,7 @@
 #include "wine/test.h"
 #include <windef.h>
 #include <winbase.h>
+#include <wincred.h>
 #include <winnt.h>
 #include <winerror.h>
 #include <ole2.h>
diff --git a/wine/dlls/schannel/lsamode.c b/wine/dlls/schannel/lsamode.c
index 96ca240..258266c 100644
--- a/wine/dlls/schannel/lsamode.c
+++ b/wine/dlls/schannel/lsamode.c
@@ -24,6 +24,7 @@
 #define WIN32_NO_STATUS
 #include "windef.h"
 #include "winbase.h"
+#include "wincred.h"
 #include "sspi.h"
 #include "ntsecapi.h"
 #include "ntsecpkg.h"
diff --git a/wine/dlls/schannel/tests/main.c b/wine/dlls/schannel/tests/main.c
index 4240dd7..9c1f827 100644
--- a/wine/dlls/schannel/tests/main.c
+++ b/wine/dlls/schannel/tests/main.c
@@ -24,6 +24,7 @@
 #define WIN32_NO_STATUS
 #include <windef.h>
 #include <winbase.h>
+#include <wincred.h>
 #define SECURITY_WIN32
 #include <security.h>
 #include <schannel.h>
diff --git a/wine/dlls/schannel/usermode.c b/wine/dlls/schannel/usermode.c
index 0713f82..1afa5d5 100644
--- a/wine/dlls/schannel/usermode.c
+++ b/wine/dlls/schannel/usermode.c
@@ -24,6 +24,7 @@
 #define WIN32_NO_STATUS
 #include "windef.h"
 #include "winbase.h"
+#include "wincred.h"
 #include "sspi.h"
 #include "ntsecapi.h"
 #include "ntsecpkg.h"
diff --git a/wine/dlls/scrrun/filesystem.c b/wine/dlls/scrrun/filesystem.c
index 2acef84..b6381a6 100644
--- a/wine/dlls/scrrun/filesystem.c
+++ b/wine/dlls/scrrun/filesystem.c
@@ -24,6 +24,7 @@
 
 #include "windef.h"
 #include "winbase.h"
+#include "wincred.h"
 #include "ole2.h"
 #include "olectl.h"
 #include "dispex.h"
diff --git a/wine/dlls/secur32/lsa.c b/wine/dlls/secur32/lsa.c
index bbd2e21..15e7bab 100644
--- a/wine/dlls/secur32/lsa.c
+++ b/wine/dlls/secur32/lsa.c
@@ -26,6 +26,7 @@
 #define WIN32_NO_STATUS
 #include "windef.h"
 #include "winbase.h"
+#include "wincred.h"
 #include "winreg.h"
 #include "sspi.h"
 #include "ntsecapi.h"
diff --git a/wine/dlls/secur32/secur32.c b/wine/dlls/secur32/secur32.c
index 1e12f3c..f5d5746 100644
--- a/wine/dlls/secur32/secur32.c
+++ b/wine/dlls/secur32/secur32.c
@@ -23,6 +23,7 @@
 #define WIN32_NO_STATUS
 #include "windef.h"
 #include "winbase.h"
+#include "wincred.h"
 #include "winnls.h"
 #include "winreg.h"
 #include "winternl.h"
diff --git a/wine/dlls/wbemprox/builtin.c b/wine/dlls/wbemprox/builtin.c
index 73d93a0..a52721b 100644
--- a/wine/dlls/wbemprox/builtin.c
+++ b/wine/dlls/wbemprox/builtin.c
@@ -34,6 +34,7 @@
 #define WIN32_NO_STATUS
 #include "windef.h"
 #include "winbase.h"
+#include "wincred.h"
 #ifdef __MINGW32__
 # include "winsock2.h"
 # include "ws2tcpip.h"
diff --git a/wine/programs/services/rpc.c b/wine/programs/services/rpc.c
index 8c95b7e..ce9edb3 100644
--- a/wine/programs/services/rpc.c
+++ b/wine/programs/services/rpc.c
@@ -25,6 +25,7 @@
 #include <windows.h>
 #include <winternl.h>
 #include <winsvc.h>
+#include <wincred.h>
 #include <ntsecapi.h>
 #include <rpc.h>
 
-- 
2.10.4

