Module: wine
Branch: master
Commit: 0484cb0a5a36379a563d48a6fb426ef2f26dd90a
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=0484cb0a5a36379a563d48a…
Author: Paul Vriens <Paul.Vriens(a)xs4all.nl>
Date: Tue Oct 3 14:37:41 2006 +0200
crypt32: Remove bogus tests.
---
dlls/crypt32/tests/sip.c | 31 ++++++-------------------------
1 files changed, 6 insertions(+), 25 deletions(-)
diff --git a/dlls/crypt32/tests/sip.c b/dlls/crypt32/tests/sip.c
index afdaf1a..3b57f43 100644
--- a/dlls/crypt32/tests/sip.c
+++ b/dlls/crypt32/tests/sip.c
@@ -291,43 +291,24 @@ static void test_SIPLoad(void)
"Expected TRUST_E_SUBJECT_FORM_UNKNOWN, got 0x%08x\n", GetLastError());
ok( sdi.pfGet == (pCryptSIPGetSignedDataMsg)0xdeadbeef, "Expected no change to the function pointer\n");
- /* cbSize not initialized */
- SetLastError(0xdeadbeef);
- memset(&sdi, 0, sizeof(SIP_DISPATCH_INFO));
- sdi.pfGet = (pCryptSIPGetSignedDataMsg)0xdeadbeef;
- ret = CryptSIPLoad(&dummySubject, 0, &sdi);
- ok ( !ret, "Expected CryptSIPLoad to fail\n");
- todo_wine
- ok ( GetLastError() == TRUST_E_SUBJECT_FORM_UNKNOWN,
- "Expected TRUST_E_SUBJECT_FORM_UNKNOWN, got 0x%08x\n", GetLastError());
- ok( sdi.pfGet == (pCryptSIPGetSignedDataMsg)0xdeadbeef, "Expected no change to the function pointer\n");
-
- /* cbSize not initialized, but valid subject (named unknown but registered by wintrust) */
+ /* All OK */
SetLastError(0xdeadbeef);
memset(&sdi, 0, sizeof(SIP_DISPATCH_INFO));
+ sdi.cbSize = sizeof(SIP_DISPATCH_INFO);
sdi.pfGet = (pCryptSIPGetSignedDataMsg)0xdeadbeef;
ret = CryptSIPLoad(&unknown, 0, &sdi);
todo_wine
{
ok ( ret, "Expected CryptSIPLoad to succeed\n");
+ /* This error will always be there as native searches for the function DllCanUnloadNow
+ * in WINTRUST.DLL (in this case). This function is not available in WINTRUST.DLL.
+ * For now there's no need to implement this is Wine.
+ */
ok ( GetLastError() == ERROR_PROC_NOT_FOUND,
"Expected ERROR_PROC_NOT_FOUND, got 0x%08x\n", GetLastError());
ok( sdi.pfGet != (pCryptSIPGetSignedDataMsg)0xdeadbeef, "Expected a function pointer to be loaded.\n");
}
- /* All OK */
- SetLastError(0xdeadbeef);
- memset(&sdi, 0, sizeof(SIP_DISPATCH_INFO));
- sdi.cbSize = sizeof(SIP_DISPATCH_INFO);
- sdi.pfGet = (pCryptSIPGetSignedDataMsg)0xdeadbeef;
- ret = CryptSIPLoad(&unknown, 0, &sdi);
- todo_wine
- ok ( ret, "Expected CryptSIPLoad to succeed\n");
- ok ( GetLastError() == 0xdeadbeef,
- "Expected 0xdeadbeef, got 0x%08x\n", GetLastError());
- todo_wine
- ok( sdi.pfGet != (pCryptSIPGetSignedDataMsg)0xdeadbeef, "Expected a function pointer to be loaded.\n");
-
/* The function addresses returned by CryptSIPLoad are actually the addresses of
* crypt32's own functions. A function calling these addresses will end up first
* calling crypt32 functions which in it's turn call the equivalent in the SIP
Module: wine
Branch: master
Commit: 38520a819cdce84d72b94aa775236fdc4318c5f1
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=38520a819cdce84d72b94aa…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Tue Oct 3 14:10:58 2006 +0200
Assorted spelling fixes.
---
dlls/kernel32/thunk.c | 4 ++--
dlls/ole32/tests/storage32.c | 2 +-
dlls/shlwapi/path.c | 2 +-
tools/winapi/winapi_check_options.pm | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/kernel32/thunk.c b/dlls/kernel32/thunk.c
index eeeb621..3bb7e5e 100644
--- a/dlls/kernel32/thunk.c
+++ b/dlls/kernel32/thunk.c
@@ -117,7 +117,7 @@ #if 0
char pszDll32[256]; /*120 */
We do it differently since all our thunk handling is done
- by 32-bit code. Therefore we do not need do provide
+ by 32-bit code. Therefore we do not need to provide
easy access to this data, especially the process target
table database, for 16-bit code.
#endif
@@ -1542,7 +1542,7 @@ void WINAPI C16ThkSL01(CONTEXT86 *contex
context->SegCs = HIWORD(context->Eax);
/* Since C16ThkSL01 got called by a jmp, we need to leave the
- orginal return address on the stack */
+ original return address on the stack */
context->Esp -= 4;
}
else
diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c
index 469e53a..65df045 100644
--- a/dlls/ole32/tests/storage32.c
+++ b/dlls/ole32/tests/storage32.c
@@ -388,7 +388,7 @@ static void test_open_storage(void)
DeleteFileW(filename);
- /* try opening a non-existant file - it should create it */
+ /* try opening a nonexistent file - it should create it */
stgm = STGM_DIRECT | STGM_SHARE_EXCLUSIVE | STGM_READWRITE;
r = StgOpenStorage( filename, NULL, stgm, NULL, 0, &stg);
ok(r==S_OK, "StgOpenStorage failed: 0x%08lx\n", r);
diff --git a/dlls/shlwapi/path.c b/dlls/shlwapi/path.c
index 32e7b74..c298f35 100644
--- a/dlls/shlwapi/path.c
+++ b/dlls/shlwapi/path.c
@@ -1112,7 +1112,7 @@ BOOL WINAPI PathFileExistsDefExtW(LPWSTR
*
* NOTES
* lpszPath is modified in place and must be at least MAX_PATH in length.
- * If the function returns FALSE, the path is modified to its orginal state.
+ * If the function returns FALSE, the path is modified to its original state.
* If the given path contains an extension or dwWhich is 0, executable
* extensions are not checked.
*
diff --git a/tools/winapi/winapi_check_options.pm b/tools/winapi/winapi_check_options.pm
index a748b05..23abb1f 100644
--- a/tools/winapi/winapi_check_options.pm
+++ b/tools/winapi/winapi_check_options.pm
@@ -104,7 +104,7 @@ my %options_long = (
"documentation-pedantic" => {
default => 0,
parent => "documentation",
- description => "be pendantic when checking for documentation inconsistencies"
+ description => "be pedantic when checking for documentation inconsistencies"
},
"documentation-arguments" => {
Module: wine
Branch: master
Commit: 17aa2c82d26c55d303f65c14b52ce0275aee7173
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=17aa2c82d26c55d303f65c1…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Tue Oct 3 14:09:58 2006 +0200
Add missing '\n's to ok() calls.
---
dlls/kernel32/tests/path.c | 2 +-
dlls/ntdll/tests/info.c | 6 +++---
dlls/rsaenh/tests/rsaenh.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/kernel32/tests/path.c b/dlls/kernel32/tests/path.c
index e348865..9e31ad7 100644
--- a/dlls/kernel32/tests/path.c
+++ b/dlls/kernel32/tests/path.c
@@ -940,7 +940,7 @@ static void test_GetLongPathNameW(void)
if(pGetLongPathNameW)
{
ok(0==length,"GetLongPathNameW returned %ld but expected 0\n",length);
- ok(GetLastError()==ERROR_INVALID_PARAMETER,"GetLastError returned %lx but expected ERROR_INVALID_PARAMETER",GetLastError());
+ ok(GetLastError()==ERROR_INVALID_PARAMETER,"GetLastError returned %lx but expected ERROR_INVALID_PARAMETER\n",GetLastError());
SetLastError(0xdeadbeef);
empty[0]=0;
diff --git a/dlls/ntdll/tests/info.c b/dlls/ntdll/tests/info.c
index 2588bed..30e1500 100644
--- a/dlls/ntdll/tests/info.c
+++ b/dlls/ntdll/tests/info.c
@@ -773,13 +773,13 @@ static void test_readvirtualmemory(void)
status = pNtReadVirtualMemory(process, teststring, buffer, 12, &readcount);
ok( status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %08lx\n", status);
ok( readcount == 12, "Expected to read 12 bytes, got %ld\n",readcount);
- ok( strcmp(teststring, buffer) == 0, "Expected read memory to be the same as original memory");
+ ok( strcmp(teststring, buffer) == 0, "Expected read memory to be the same as original memory\n");
/* no number of bytes */
memset(buffer, 0, 12);
status = pNtReadVirtualMemory(process, teststring, buffer, 12, NULL);
ok( status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %08lx\n", status);
- ok( strcmp(teststring, buffer) == 0, "Expected read memory to be the same as original memory");
+ ok( strcmp(teststring, buffer) == 0, "Expected read memory to be the same as original memory\n");
/* illegal remote address */
todo_wine{
@@ -798,7 +798,7 @@ static void test_readvirtualmemory(void)
status = pNtReadVirtualMemory((HANDLE)-1, teststring, buffer, 12, &readcount);
ok( status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %08lx\n", status);
ok( readcount == 12, "Expected to read 12 bytes, got %ld\n",readcount);
- ok( strcmp(teststring, buffer) == 0, "Expected read memory to be the same as original memory");
+ ok( strcmp(teststring, buffer) == 0, "Expected read memory to be the same as original memory\n");
/* this test currently crashes wine with "wine client error:<process id>: read: Bad address"
* because the reply from wine server is directly read into the buffer and that fails with EFAULT
diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 2162562..25467d7 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -1175,7 +1175,7 @@ static void test_import_export(void)
result = CryptExportKey(hPublicKey, 0, PUBLICKEYBLOB, 0, emptyKey, &dwLen);
ok(result, "failed to export the fresh imported public key\n");
- ok(dwLen == 84, "Expected exported key to be 84 bytes long but got %ld bytes.",dwLen);
+ ok(dwLen == 84, "Expected exported key to be 84 bytes long but got %ld bytes.\n",dwLen);
ok(!memcmp(emptyKey, abPlainPublicKey, dwLen), "exported key is different from the imported key\n");
}