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
98fef79f
Commit
98fef79f
authored
Nov 27, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Use ReadCabinetState to check title logic.
parent
f8134cee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
progman_dde.c
dlls/shell32/tests/progman_dde.c
+10
-8
No files found.
dlls/shell32/tests/progman_dde.c
View file @
98fef79f
...
...
@@ -67,6 +67,7 @@
#define DDE_TEST_NUMMASK 0x0000ffff
static
BOOL
(
WINAPI
*
pSHGetSpecialFolderPathA
)(
HWND
,
LPSTR
,
int
,
BOOL
);
static
BOOL
(
WINAPI
*
pReadCabinetState
)(
CABINETSTATE
*
,
int
);
static
void
init_function_pointers
(
void
)
{
...
...
@@ -74,6 +75,9 @@ static void init_function_pointers(void)
hmod
=
GetModuleHandleA
(
"shell32.dll"
);
pSHGetSpecialFolderPathA
=
(
void
*
)
GetProcAddress
(
hmod
,
"SHGetSpecialFolderPathA"
);
pReadCabinetState
=
(
void
*
)
GetProcAddress
(
hmod
,
"ReadCabinetState"
);
if
(
!
pReadCabinetState
)
pReadCabinetState
=
(
void
*
)
GetProcAddress
(
hmod
,
(
LPSTR
)
651
);
}
static
char
CommonPrograms
[
MAX_PATH
];
...
...
@@ -87,10 +91,8 @@ static char StartupTitle[MAX_PATH] = "Startup";
static
void
init_strings
(
void
)
{
HKEY
key
;
DWORD
fullpath
=
0
;
DWORD
size
;
char
startup
[
MAX_PATH
];
CABINETSTATE
cs
;
if
(
pSHGetSpecialFolderPathA
)
{
...
...
@@ -106,6 +108,8 @@ static void init_strings(void)
}
else
{
HKEY
key
;
DWORD
size
;
LONG
res
;
/* Older Win9x and NT4 */
...
...
@@ -128,11 +132,9 @@ static void init_strings(void)
RegCloseKey
(
key
);
}
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Explorer
\\
CabinetState"
,
&
key
);
size
=
sizeof
(
DWORD
);
RegQueryValueExA
(
key
,
"FullPath"
,
NULL
,
NULL
,
(
LPBYTE
)
&
fullpath
,
&
size
);
RegCloseKey
(
key
);
if
(
fullpath
==
1
)
memset
(
&
cs
,
0
,
sizeof
(
cs
));
pReadCabinetState
(
&
cs
,
sizeof
(
cs
));
if
(
cs
.
fFullPathTitle
==
-
1
)
{
lstrcpyA
(
Group1Title
,
CommonPrograms
);
lstrcatA
(
Group1Title
,
"
\\
Group1"
);
...
...
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