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
8d5e5e74
Commit
8d5e5e74
authored
Nov 11, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Run tests again on NT4.
parent
007586ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
progman_dde.c
dlls/shell32/tests/progman_dde.c
+21
-2
No files found.
dlls/shell32/tests/progman_dde.c
View file @
8d5e5e74
...
...
@@ -59,6 +59,16 @@
#define DDE_TEST_NUMMASK 0x0000ffff
static
BOOL
(
WINAPI
*
pSHGetSpecialFolderPathA
)(
HWND
,
LPSTR
,
int
,
BOOL
);
static
void
init_function_pointers
(
void
)
{
HMODULE
hmod
;
hmod
=
GetModuleHandleA
(
"shell32.dll"
);
pSHGetSpecialFolderPathA
=
(
void
*
)
GetProcAddress
(
hmod
,
"SHGetSpecialFolderPathA"
);
}
static
HDDEDATA
CALLBACK
DdeCallback
(
UINT
type
,
UINT
format
,
HCONV
hConv
,
HSZ
hsz1
,
HSZ
hsz2
,
HDDEDATA
hDDEData
,
ULONG_PTR
data1
,
ULONG_PTR
data2
)
{
...
...
@@ -233,6 +243,9 @@ static void CheckFileExistsInProgramGroups(const char *nameToCheck, int shouldEx
DWORD
attributes
;
int
len
;
if
(
!
pSHGetSpecialFolderPathA
)
return
;
path
=
HeapAlloc
(
GetProcessHeap
(),
0
,
MAX_PATH
);
if
(
path
!=
NULL
)
{
...
...
@@ -243,13 +256,13 @@ static void CheckFileExistsInProgramGroups(const char *nameToCheck, int shouldEx
if
(
testParams
&
DDE_TEST_COMMON
)
{
specialFolder
=
CSIDL_COMMON_PROGRAMS
;
err
=
SHGetSpecialFolderPath
(
NULL
,
path
,
specialFolder
,
FALSE
);
err
=
pSHGetSpecialFolderPathA
(
NULL
,
path
,
specialFolder
,
FALSE
);
/* Win 9x fails, use CSIDL_PROGRAMS (err == FALSE) */
}
if
(
err
==
FALSE
)
{
specialFolder
=
CSIDL_PROGRAMS
;
err
=
SHGetSpecialFolderPath
(
NULL
,
path
,
specialFolder
,
FALSE
);
err
=
pSHGetSpecialFolderPathA
(
NULL
,
path
,
specialFolder
,
FALSE
);
}
len
=
strlen
(
path
)
+
strlen
(
nameToCheck
)
+
1
;
if
(
groupName
!=
NULL
)
...
...
@@ -526,6 +539,12 @@ START_TEST(progman_dde)
HCONV
hConv
;
int
testnum
;
init_function_pointers
();
/* Only report this once */
if
(
!
pSHGetSpecialFolderPathA
)
win_skip
(
"SHGetSpecialFolderPathA is not available
\n
"
);
/* Initialize DDE Instance */
err
=
DdeInitialize
(
&
instance
,
DdeCallback
,
APPCMD_CLIENTONLY
,
0
);
ok
(
err
==
DMLERR_NO_ERROR
,
"DdeInitialize Error %s
\n
"
,
GetStringFromError
(
err
));
...
...
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