Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b684c60a
Commit
b684c60a
authored
Jul 29, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Fix some test failures on Win2000.
parent
4c174fc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
ordinal.c
dlls/shlwapi/tests/ordinal.c
+16
-2
No files found.
dlls/shlwapi/tests/ordinal.c
View file @
b684c60a
...
...
@@ -590,6 +590,7 @@ static void test_GetShellSecurityDescriptor(void)
};
SECURITY_DESCRIPTOR
*
psd
;
SECURITY_DESCRIPTOR
*
(
WINAPI
*
pGetShellSecurityDescriptor
)(
PSHELL_USER_PERMISSION
*
,
int
);
void
*
pChrCmpIW
=
GetProcAddress
(
hShlwapi
,
"ChrCmpIW"
);
pGetShellSecurityDescriptor
=
(
void
*
)
GetProcAddress
(
hShlwapi
,(
char
*
)
475
);
...
...
@@ -599,12 +600,18 @@ static void test_GetShellSecurityDescriptor(void)
return
;
}
if
(
pChrCmpIW
&&
pChrCmpIW
==
pGetShellSecurityDescriptor
)
/* win2k */
{
win_skip
(
"Skipping for GetShellSecurityDescriptor, same ordinal used for ChrCmpIW
\n
"
);
return
;
}
psd
=
pGetShellSecurityDescriptor
(
NULL
,
2
);
ok
(
psd
==
NULL
||
broken
(
psd
==
INVALID_HANDLE_VALUE
),
/* IE5 */
"GetShellSecurityDescriptor should fail
\n
"
);
psd
=
pGetShellSecurityDescriptor
(
rgsup
,
0
);
ok
(
psd
==
NULL
,
"GetShellSecurityDescriptor should fail
\n
"
);
ok
(
psd
==
NULL
,
"GetShellSecurityDescriptor should fail
, got %p
\n
"
,
psd
);
SetLastError
(
0xdeadbeef
);
psd
=
pGetShellSecurityDescriptor
(
rgsup
,
2
);
...
...
@@ -614,7 +621,7 @@ static void test_GetShellSecurityDescriptor(void)
win_skip
(
"GetShellSecurityDescriptor is not implemented
\n
"
);
return
;
}
if
(
psd
==
INVALID_HANDLE_VALUE
)
if
(
psd
==
INVALID_HANDLE_VALUE
)
{
win_skip
(
"GetShellSecurityDescriptor is broken on IE5
\n
"
);
return
;
...
...
@@ -1910,6 +1917,7 @@ static void test_SHGetObjectCompatFlags(void)
};
static
const
char
compat_path
[]
=
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
ShellCompatibility
\\
Objects"
;
void
*
pColorAdjustLuma
=
GetProcAddress
(
hShlwapi
,
"ColorAdjustLuma"
);
CHAR
keyA
[
39
];
/* {CLSID} */
HKEY
root
;
DWORD
ret
;
...
...
@@ -1921,6 +1929,12 @@ static void test_SHGetObjectCompatFlags(void)
return
;
}
if
(
pColorAdjustLuma
&&
pColorAdjustLuma
==
pSHGetObjectCompatFlags
)
/* win2k */
{
win_skip
(
"Skipping SHGetObjectCompatFlags, same ordinal used for ColorAdjustLuma
\n
"
);
return
;
}
/* null args */
ret
=
pSHGetObjectCompatFlags
(
NULL
,
NULL
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
...
...
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