OLE32: fix declarations in the tests

Mike McCormack mike at codeweavers.com
Tue Jun 14 21:54:50 CDT 2005


ChangeLog:
* fix declarations in the tests
-------------- next part --------------
Index: dlls/ole32/tests/stg_prop.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/tests/stg_prop.c,v
retrieving revision 1.7
diff -u -p -r1.7 stg_prop.c
--- dlls/ole32/tests/stg_prop.c	13 Jun 2005 12:10:55 -0000	1.7
+++ dlls/ole32/tests/stg_prop.c	15 Jun 2005 02:54:29 -0000
@@ -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)
Index: dlls/ole32/tests/storage32.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/tests/storage32.c,v
retrieving revision 1.11
diff -u -p -r1.11 storage32.c
--- dlls/ole32/tests/storage32.c	13 May 2005 13:58:43 -0000	1.11
+++ dlls/ole32/tests/storage32.c	15 Jun 2005 02:54:29 -0000
@@ -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 filen
     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 };


More information about the wine-patches mailing list