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
2b7d8311
Commit
2b7d8311
authored
Feb 16, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Define our own structure for control panel info, with more space for strings.
parent
76e28194
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
50 deletions
+48
-50
control.c
dlls/shell32/control.c
+35
-46
cpanel.h
dlls/shell32/cpanel.h
+11
-2
cpanelfolder.c
dlls/shell32/cpanelfolder.c
+2
-2
No files found.
dlls/shell32/control.c
View file @
2b7d8311
This diff is collapsed.
Click to expand it.
dlls/shell32/cpanel.h
View file @
2b7d8311
...
...
@@ -23,6 +23,16 @@
#include "cpl.h"
struct
applet_info
{
BOOL
valid
;
LONG_PTR
data
;
HICON
icon
;
WCHAR
name
[
256
];
WCHAR
info
[
256
];
WCHAR
helpfile
[
128
];
};
typedef
struct
CPlApplet
{
struct
CPlApplet
*
next
;
/* linked list */
HWND
hWnd
;
...
...
@@ -30,8 +40,7 @@ typedef struct CPlApplet {
unsigned
count
;
/* number of subprograms */
HMODULE
hModule
;
/* module of loaded applet */
APPLET_PROC
proc
;
/* entry point address */
NEWCPLINFOW
info
[
1
];
/* array of count information.
* dwSize field is 0 if entry is invalid */
struct
applet_info
info
[
1
];
/* array of count information */
}
CPlApplet
;
typedef
struct
CPanel
{
...
...
dlls/shell32/cpanelfolder.c
View file @
2b7d8311
...
...
@@ -309,8 +309,8 @@ static BOOL SHELL_RegisterCPanelApp(IEnumIDListImpl *list, LPCSTR path)
{
for
(
i
=
0
;
i
<
applet
->
count
;
++
i
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
applet
->
info
[
i
].
szN
ame
,
-
1
,
displayName
,
MAX_PATH
,
0
,
0
);
WideCharToMultiByte
(
CP_ACP
,
0
,
applet
->
info
[
i
].
szI
nfo
,
-
1
,
comment
,
MAX_PATH
,
0
,
0
);
WideCharToMultiByte
(
CP_ACP
,
0
,
applet
->
info
[
i
].
n
ame
,
-
1
,
displayName
,
MAX_PATH
,
0
,
0
);
WideCharToMultiByte
(
CP_ACP
,
0
,
applet
->
info
[
i
].
i
nfo
,
-
1
,
comment
,
MAX_PATH
,
0
,
0
);
applet
->
proc
(
0
,
CPL_INQUIRE
,
i
,
(
LPARAM
)
&
info
);
...
...
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