[WINTRUST_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368

svn path=/trunk/; revision=71732
This commit is contained in:
Amine Khaldi 2016-07-02 13:04:19 +00:00
parent 98ed140b4f
commit 2eca3a3c3e

View file

@ -23,6 +23,7 @@
#include <stdio.h> #include <stdio.h>
#include "windows.h" #include "windows.h"
#include "wincrypt.h"
#include "mscat.h" #include "mscat.h"
#include "wine/test.h" #include "wine/test.h"
@ -1232,21 +1233,21 @@ static void test_sip(void)
ok(ret, "CryptSIPRetrieveSubjectGuid failed (%x)\n", GetLastError()); ok(ret, "CryptSIPRetrieveSubjectGuid failed (%x)\n", GetLastError());
ret = pPutSignedDataMsg(&info, X509_ASN_ENCODING, &index, 4, (BYTE*)"test"); ret = pPutSignedDataMsg(&info, X509_ASN_ENCODING, &index, 4, (BYTE*)"test");
ok(!ret, "CryptSIPPutSignedDataMsg succeedded\n"); ok(!ret, "CryptSIPPutSignedDataMsg succeeded\n");
index = GetLastError(); index = GetLastError();
ok(index == ERROR_PATH_NOT_FOUND, "GetLastError returned %x\n", index); ok(index == ERROR_PATH_NOT_FOUND, "GetLastError returned %x\n", index);
info.hFile = file; info.hFile = file;
info.pwsFileName = nameW; info.pwsFileName = nameW;
ret = pPutSignedDataMsg(&info, X509_ASN_ENCODING, &index, 4, (BYTE*)"test"); ret = pPutSignedDataMsg(&info, X509_ASN_ENCODING, &index, 4, (BYTE*)"test");
ok(!ret, "CryptSIPPutSignedDataMsg succeedded\n"); ok(!ret, "CryptSIPPutSignedDataMsg succeeded\n");
index = GetLastError(); index = GetLastError();
todo_wine ok(index == ERROR_INVALID_PARAMETER, "GetLastError returned %x\n", index); todo_wine ok(index == ERROR_INVALID_PARAMETER, "GetLastError returned %x\n", index);
info.hFile = INVALID_HANDLE_VALUE; info.hFile = INVALID_HANDLE_VALUE;
info.pwsFileName = nameW; info.pwsFileName = nameW;
ret = pPutSignedDataMsg(&info, X509_ASN_ENCODING, &index, 4, (BYTE*)"test"); ret = pPutSignedDataMsg(&info, X509_ASN_ENCODING, &index, 4, (BYTE*)"test");
ok(!ret, "CryptSIPPutSignedDataMsg succeedded\n"); ok(!ret, "CryptSIPPutSignedDataMsg succeeded\n");
index = GetLastError(); index = GetLastError();
ok(index == ERROR_SHARING_VIOLATION, "GetLastError returned %x\n", index); ok(index == ERROR_SHARING_VIOLATION, "GetLastError returned %x\n", index);