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
946b4ad2
Commit
946b4ad2
authored
Jan 08, 2018
by
Alex Henrie
Committed by
Alexandre Julliard
Jan 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Drop progman DDE test workarounds for Windows <= 2000.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a148e555
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
43 deletions
+3
-43
progman_dde.c
dlls/shell32/tests/progman_dde.c
+3
-43
No files found.
dlls/shell32/tests/progman_dde.c
View file @
946b4ad2
...
...
@@ -35,8 +35,6 @@
#include "shlobj.h"
static
HRESULT
(
WINAPI
*
pSHGetLocalizedName
)(
LPCWSTR
,
LPWSTR
,
UINT
,
int
*
);
static
BOOL
(
WINAPI
*
pSHGetSpecialFolderPathA
)(
HWND
,
LPSTR
,
int
,
BOOL
);
static
BOOL
(
WINAPI
*
pReadCabinetState
)(
CABINETSTATE
*
,
int
);
static
void
init_function_pointers
(
void
)
{
...
...
@@ -44,10 +42,6 @@ static void init_function_pointers(void)
hmod
=
GetModuleHandleA
(
"shell32.dll"
);
pSHGetLocalizedName
=
(
void
*
)
GetProcAddress
(
hmod
,
"SHGetLocalizedName"
);
pSHGetSpecialFolderPathA
=
(
void
*
)
GetProcAddress
(
hmod
,
"SHGetSpecialFolderPathA"
);
pReadCabinetState
=
(
void
*
)
GetProcAddress
(
hmod
,
"ReadCabinetState"
);
if
(
!
pReadCabinetState
)
pReadCabinetState
=
(
void
*
)
GetProcAddress
(
hmod
,
(
LPSTR
)
651
);
}
static
BOOL
use_common
(
void
)
...
...
@@ -88,21 +82,7 @@ static BOOL full_title(void)
CABINETSTATE
cs
;
memset
(
&
cs
,
0
,
sizeof
(
cs
));
if
(
pReadCabinetState
)
{
pReadCabinetState
(
&
cs
,
sizeof
(
cs
));
}
else
{
HKEY
key
;
DWORD
size
;
win_skip
(
"ReadCabinetState is not available, reading registry directly
\n
"
);
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Explorer
\\
CabinetState"
,
&
key
);
size
=
sizeof
(
cs
);
RegQueryValueExA
(
key
,
"Settings"
,
NULL
,
NULL
,
(
LPBYTE
)
&
cs
,
&
size
);
RegCloseKey
(
key
);
}
ReadCabinetState
(
&
cs
,
sizeof
(
cs
));
return
(
cs
.
fFullPathTitle
==
-
1
);
}
...
...
@@ -114,28 +94,8 @@ static void init_strings(void)
char
commonprograms
[
MAX_PATH
];
char
programs
[
MAX_PATH
];
if
(
pSHGetSpecialFolderPathA
)
{
pSHGetSpecialFolderPathA
(
NULL
,
programs
,
CSIDL_PROGRAMS
,
FALSE
);
pSHGetSpecialFolderPathA
(
NULL
,
commonprograms
,
CSIDL_COMMON_PROGRAMS
,
FALSE
);
}
else
{
HKEY
key
;
DWORD
size
;
/* Older Win9x and NT4 */
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Explorer
\\
Shell Folders"
,
&
key
);
size
=
sizeof
(
programs
);
RegQueryValueExA
(
key
,
"Programs"
,
NULL
,
NULL
,
(
LPBYTE
)
&
programs
,
&
size
);
RegCloseKey
(
key
);
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Explorer
\\
Shell Folders"
,
&
key
);
size
=
sizeof
(
commonprograms
);
RegQueryValueExA
(
key
,
"Common Programs"
,
NULL
,
NULL
,
(
LPBYTE
)
&
commonprograms
,
&
size
);
RegCloseKey
(
key
);
}
SHGetSpecialFolderPathA
(
NULL
,
programs
,
CSIDL_PROGRAMS
,
FALSE
);
SHGetSpecialFolderPathA
(
NULL
,
commonprograms
,
CSIDL_COMMON_PROGRAMS
,
FALSE
);
/* ProgramsDir on Vista+ is always the users one (CSIDL_PROGRAMS). Before Vista
* it depends on whether the user is an administrator (CSIDL_COMMON_PROGRAMS) or
...
...
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