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
83c422e1
Commit
83c422e1
authored
Jan 19, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix crash on ancient Win95.
parent
72393c55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
progman_dde.c
dlls/shell32/tests/progman_dde.c
+25
-5
No files found.
dlls/shell32/tests/progman_dde.c
View file @
83c422e1
...
...
@@ -102,6 +102,30 @@ static BOOL use_common(void)
return
TRUE
;
}
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
);
}
return
(
cs
.
fFullPathTitle
==
-
1
);
}
static
char
ProgramsDir
[
MAX_PATH
];
static
char
Group1Title
[
MAX_PATH
]
=
"Group1"
;
...
...
@@ -115,8 +139,6 @@ static void init_strings(void)
char
commonprograms
[
MAX_PATH
];
char
programs
[
MAX_PATH
];
CABINETSTATE
cs
;
if
(
pSHGetSpecialFolderPathA
)
{
pSHGetSpecialFolderPathA
(
NULL
,
programs
,
CSIDL_PROGRAMS
,
FALSE
);
...
...
@@ -153,9 +175,7 @@ static void init_strings(void)
else
lstrcpyA
(
ProgramsDir
,
programs
);
memset
(
&
cs
,
0
,
sizeof
(
cs
));
pReadCabinetState
(
&
cs
,
sizeof
(
cs
));
if
(
cs
.
fFullPathTitle
==
-
1
)
if
(
full_title
())
{
lstrcpyA
(
Group1Title
,
ProgramsDir
);
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