Fix declarations in the tests.

This commit is contained in:
Mike McCormack 2005-06-15 10:20:30 +00:00 committed by Alexandre Julliard
parent 9495180325
commit 0220d7ac89
2 changed files with 9 additions and 9 deletions

View File

@ -252,7 +252,7 @@ static void testProps(void)
DeleteFileW(filename);
}
void testCodepage(void)
static void testCodepage(void)
{
static const WCHAR szDot[] = { '.',0 };
static const WCHAR szPrefix[] = { 's','t','g',0 };
@ -379,7 +379,7 @@ void testCodepage(void)
* and I expect it would under Windows as well, yet it succeeds. There's
* obviously something about string conversion I don't understand.
*/
#if 0
if(0) {
static const char strVal[] = { 0x81, 0xff, 0x04, 0 };
/* Set code page to 950 (Traditional Chinese) */
U(var).iVal = 950;
@ -399,7 +399,7 @@ void testCodepage(void)
ok(SUCCEEDED(hr), "ReadMultiple failed: 0x%08lx\n", hr);
ok(var.vt == VT_LPSTR && !strcmp(U(var).pszVal, strVal),
"Didn't get expected type or value for property\n");
#endif
}
IPropertyStorage_Release(propertyStorage);
IPropertySetStorage_Release(propSetStorage);
@ -479,7 +479,7 @@ static void testFmtId(void)
ok(SUCCEEDED(hr), "PropStgNameToFmtId failed: 0x%08lx\n", hr);
ok(!memcmp(&fmtid, &IID_IPropertySetStorage, sizeof(fmtid)),
"Got unexpected FMTID, expected IID_IPropertySetStorage\n");
}
}
}
START_TEST(stg_prop)

View File

@ -32,7 +32,7 @@
DEFINE_GUID( test_stg_cls, 0x88888888, 0x0425, 0x0000, 0,0,0,0,0,0,0,0);
void test_hglobal_storage_stat(void)
static void test_hglobal_storage_stat(void)
{
ILockBytes *ilb = NULL;
IStorage *stg = NULL;
@ -66,7 +66,7 @@ void test_hglobal_storage_stat(void)
ok( refcount == 0, "ILockBytes refcount is wrong\n");
}
void test_create_storage_modes(void)
static void test_create_storage_modes(void)
{
static const WCHAR szPrefix[] = { 's','t','g',0 };
static const WCHAR szDot[] = { '.',0 };
@ -209,7 +209,7 @@ void test_create_storage_modes(void)
ok(DeleteFileW(filename), "failed to delete file\n");
}
void test_storage_stream(void)
static void test_storage_stream(void)
{
static const WCHAR stmname[] = { 'C','O','N','T','E','N','T','S',0 };
static const WCHAR szPrefix[] = { 's','t','g',0 };
@ -341,7 +341,7 @@ static BOOL is_zero_length(LPCWSTR filename)
return len == 0;
}
void test_open_storage(void)
static void test_open_storage(void)
{
static const WCHAR szPrefix[] = { 's','t','g',0 };
static const WCHAR szNonExist[] = { 'n','o','n','e','x','i','s','t',0 };
@ -444,7 +444,7 @@ void test_open_storage(void)
ok(r, "file didn't exist\n");
}
void test_storage_suminfo(void)
static void test_storage_suminfo(void)
{
static const WCHAR szDot[] = { '.',0 };
static const WCHAR szPrefix[] = { 's','t','g',0 };