Skip to content

Commit

Permalink
[ADVAPI32_WINETEST] Sync with Wine Staging 3.3. CORE-14434
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineKhaldi committed Apr 1, 2018
1 parent 8da9b8d commit 3c1b783
Show file tree
Hide file tree
Showing 12 changed files with 496 additions and 179 deletions.
9 changes: 7 additions & 2 deletions modules/rostests/winetests/advapi32/cred.c
Expand Up @@ -18,9 +18,14 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

#include "precomp.h"
#include <stdarg.h>
#include <stdio.h>

#include <wincred.h>
#include "windef.h"
#include "winbase.h"
#include "wincred.h"

#include "wine/test.h"

static BOOL (WINAPI *pCredDeleteA)(LPCSTR,DWORD,DWORD);
static BOOL (WINAPI *pCredEnumerateA)(LPCSTR,DWORD,DWORD *,PCREDENTIALA **);
Expand Down
10 changes: 8 additions & 2 deletions modules/rostests/winetests/advapi32/crypt.c
Expand Up @@ -18,9 +18,15 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

#include "precomp.h"
#include <stdarg.h>

#include <wincrypt.h>
#include "windef.h"
#include "winbase.h"
#include "wincrypt.h"
#include "winerror.h"
#include "winreg.h"

#include "wine/test.h"

static const char szRsaBaseProv[] = MS_DEF_PROV_A;
static const char szNonExistentProv[] = "Wine Nonexistent Cryptographic Provider v11.2";
Expand Down
9 changes: 8 additions & 1 deletion modules/rostests/winetests/advapi32/crypt_lmhash.c
Expand Up @@ -19,7 +19,14 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

#include "precomp.h"
#include <stdio.h>

#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "wine/test.h"
#include "windef.h"
#include "winbase.h"
#include "winternl.h"

struct ustring {
DWORD Length;
Expand Down
10 changes: 9 additions & 1 deletion modules/rostests/winetests/advapi32/crypt_md4.c
Expand Up @@ -18,7 +18,15 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

#include "precomp.h"
#include <stdio.h>

#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "wine/test.h"
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "winternl.h"

typedef struct
{
Expand Down
7 changes: 6 additions & 1 deletion modules/rostests/winetests/advapi32/crypt_md5.c
Expand Up @@ -18,7 +18,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

#include "precomp.h"
#include <stdio.h>

#include "wine/test.h"
#include "windef.h"
#include "winbase.h"
#include "winerror.h"

typedef struct
{
Expand Down
8 changes: 7 additions & 1 deletion modules/rostests/winetests/advapi32/crypt_sha.c
Expand Up @@ -18,7 +18,13 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

#include "precomp.h"
#include <stdarg.h>

#include "windef.h"
#include "winbase.h"
#include "winerror.h"

#include "wine/test.h"

typedef struct {
ULONG Unknown[6];
Expand Down
18 changes: 13 additions & 5 deletions modules/rostests/winetests/advapi32/eventlog.c
Expand Up @@ -18,11 +18,19 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

#include "precomp.h"
#include <stdarg.h>

#include <wmistr.h>
#include <initguid.h>
#include <evntrace.h>
#include "initguid.h"
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "winnt.h"
#include "winreg.h"
#include "sddl.h"
#include "wmistr.h"
#include "evntrace.h"

#include "wine/test.h"

static BOOL (WINAPI *pCreateWellKnownSid)(WELL_KNOWN_SID_TYPE,PSID,PSID,DWORD*);
static BOOL (WINAPI *pGetEventLogInformation)(HANDLE,DWORD,LPVOID,DWORD,LPDWORD);
Expand Down Expand Up @@ -1149,7 +1157,7 @@ static void test_start_trace(void)
LONG ret;

buffersize = sizeof(EVENT_TRACE_PROPERTIES) + sizeof(sessionname) + sizeof(filepath);
properties = (EVENT_TRACE_PROPERTIES *) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, buffersize);
properties = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, buffersize);
properties->Wnode.BufferSize = buffersize;
properties->Wnode.Flags = WNODE_FLAG_TRACED_GUID;
properties->LogFileMode = EVENT_TRACE_FILE_MODE_NONE;
Expand Down

0 comments on commit 3c1b783

Please sign in to comment.