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
61b89b63
Commit
61b89b63
authored
Jun 18, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix some test failures on Vista and higher.
parent
cca34925
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
10 deletions
+26
-10
shlfolder.c
dlls/shell32/tests/shlfolder.c
+26
-10
No files found.
dlls/shell32/tests/shlfolder.c
View file @
61b89b63
...
...
@@ -81,6 +81,15 @@ static void init_function_pointers(void)
ok
(
hr
==
S_OK
,
"SHGetMalloc failed %08x
\n
"
,
hr
);
}
static
const
char
*
wine_dbgstr_w
(
LPCWSTR
str
)
{
static
char
buf
[
512
];
if
(
!
str
)
return
"(null)"
;
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
buf
,
sizeof
(
buf
),
NULL
,
NULL
);
return
buf
;
}
static
void
test_ParseDisplayName
(
void
)
{
HRESULT
hr
;
...
...
@@ -1120,6 +1129,10 @@ static HRESULT WINAPI InitPropertyBag_IPropertyBag_Read(IPropertyBag *iface, LPC
'A'
,
't'
,
't'
,
'r'
,
'i'
,
'b'
,
'u'
,
't'
,
'e'
,
's'
,
0
};
static
const
WCHAR
wszResolveLinkFlags
[]
=
{
'R'
,
'e'
,
's'
,
'o'
,
'l'
,
'v'
,
'e'
,
'L'
,
'i'
,
'n'
,
'k'
,
'F'
,
'l'
,
'a'
,
'g'
,
's'
,
0
};
static
const
WCHAR
wszTargetKnownFolder
[]
=
{
'T'
,
'a'
,
'r'
,
'g'
,
'e'
,
't'
,
'K'
,
'n'
,
'o'
,
'w'
,
'n'
,
'F'
,
'o'
,
'l'
,
'd'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
wszCLSID
[]
=
{
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
0
};
if
(
!
lstrcmpW
(
pszPropName
,
wszTargetSpecialFolder
))
{
ok
(
V_VT
(
pVar
)
==
VT_I4
||
...
...
@@ -1159,7 +1172,19 @@ static HRESULT WINAPI InitPropertyBag_IPropertyBag_Read(IPropertyBag *iface, LPC
return
S_OK
;
}
ok
(
FALSE
,
"PropertyBag was asked for unknown property (vt=%d)!
\n
"
,
V_VT
(
pVar
));
if
(
!
lstrcmpW
(
pszPropName
,
wszTargetKnownFolder
))
{
ok
(
V_VT
(
pVar
)
==
VT_BSTR
,
"Wrong variant type for 'TargetKnownFolder' property!
\n
"
);
/* TODO */
return
E_INVALIDARG
;
}
if
(
!
lstrcmpW
(
pszPropName
,
wszCLSID
))
{
ok
(
V_VT
(
pVar
)
==
VT_EMPTY
,
"Wrong variant type for 'CLSID' property!
\n
"
);
/* TODO */
return
E_INVALIDARG
;
}
ok
(
FALSE
,
"PropertyBag was asked for unknown property %s (vt=%d)!
\n
"
,
wine_dbgstr_w
(
pszPropName
),
V_VT
(
pVar
));
return
E_INVALIDARG
;
}
...
...
@@ -1626,15 +1651,6 @@ static void testSHGetFolderPathAndSubDirA(void)
RemoveDirectoryA
(
testpath
);
}
static
const
char
*
wine_dbgstr_w
(
LPCWSTR
str
)
{
static
char
buf
[
512
];
if
(
!
str
)
return
"(null)"
;
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
buf
,
sizeof
(
buf
),
NULL
,
NULL
);
return
buf
;
}
static
void
test_LocalizedNames
(
void
)
{
static
char
cCurrDirA
[
MAX_PATH
];
...
...
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