Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d323acc2
Commit
d323acc2
authored
Jul 12, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix conformance test to compile with MSVC6.
parent
a5b34797
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
stg_prop.c
dlls/ole32/tests/stg_prop.c
+6
-2
storage32.c
dlls/ole32/tests/storage32.c
+2
-3
No files found.
dlls/ole32/tests/stg_prop.c
View file @
d323acc2
...
...
@@ -20,6 +20,10 @@
#include "objbase.h"
#include "wine/test.h"
#ifndef PID_BEHAVIOR
#define PID_BEHAVIOR 0x80000003
#endif
static
HRESULT
(
WINAPI
*
pFmtIdToPropStgName
)(
const
FMTID
*
,
LPOLESTR
);
static
HRESULT
(
WINAPI
*
pPropStgNameToFmtId
)(
const
LPOLESTR
,
FMTID
*
);
static
HRESULT
(
WINAPI
*
pStgCreatePropSetStg
)(
IStorage
*
,
DWORD
,
IPropertySetStorage
**
);
...
...
@@ -391,7 +395,7 @@ static void testCodepage(void)
* obviously something about string conversion I don't understand.
*/
if
(
0
)
{
static
const
char
strVal
[]
=
{
0x81
,
0xff
,
0x04
,
0
};
static
const
unsigned
char
strVal
[]
=
{
0x81
,
0xff
,
0x04
,
0
};
/* Set code page to 950 (Traditional Chinese) */
U
(
var
).
iVal
=
950
;
hr
=
IPropertyStorage_WriteMultiple
(
propertyStorage
,
1
,
&
spec
,
&
var
,
0
);
...
...
@@ -408,7 +412,7 @@ static void testCodepage(void)
/* Check returned string */
hr
=
IPropertyStorage_ReadMultiple
(
propertyStorage
,
1
,
&
spec
,
&
var
);
ok
(
SUCCEEDED
(
hr
),
"ReadMultiple failed: 0x%08lx
\n
"
,
hr
);
ok
(
var
.
vt
==
VT_LPSTR
&&
!
strcmp
(
U
(
var
).
pszVal
,
strVal
),
ok
(
var
.
vt
==
VT_LPSTR
&&
!
strcmp
(
U
(
var
).
pszVal
,
(
LPCSTR
)
strVal
),
"Didn't get expected type or value for property
\n
"
);
}
...
...
dlls/ole32/tests/storage32.c
View file @
d323acc2
...
...
@@ -22,10 +22,9 @@
#define COBJMACROS
#include <windows.h>
#include "wine/test.h"
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "ole2.h"
#include "objidl.h"
#include "initguid.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment