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
eb5a4f21
Commit
eb5a4f21
authored
Sep 26, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Don't use PROPSHEETPAGE structure to store internal HPROPSHEETPAGE data.
parent
fc767fd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
propsheet.c
dlls/comctl32/propsheet.c
+5
-9
No files found.
dlls/comctl32/propsheet.c
View file @
eb5a4f21
...
...
@@ -97,7 +97,8 @@ typedef struct
struct
_PSP
{
ULONG_PTR
magic
;
DWORD
magic
;
BOOL
unicode
;
PROPSHEETPAGEW
psp
;
PROPSHEETPAGEW
callback_psp
;
};
...
...
@@ -149,8 +150,6 @@ typedef struct
static
const
WCHAR
PropSheetInfoStr
[]
=
L"PropertySheetInfo"
;
#define PSP_INTERNAL_UNICODE 0x80000000
#define MAX_CAPTION_LENGTH 255
#define MAX_TABTEXT_LENGTH 255
#define MAX_BUTTONTEXT_LENGTH 64
...
...
@@ -361,7 +360,7 @@ static const DLGTEMPLATE* HPSP_load_template(HPROPSHEETPAGE hpsp, DWORD *size)
return
hpsp
->
psp
.
u
.
pResource
;
}
if
(
hpsp
->
psp
.
dwFlags
&
PSP_INTERNAL_UNICODE
)
if
(
hpsp
->
unicode
)
{
res
=
FindResourceW
(
hpsp
->
psp
.
hInstance
,
hpsp
->
psp
.
u
.
pszTemplate
,
(
LPWSTR
)
RT_DIALOG
);
...
...
@@ -428,7 +427,7 @@ static HWND HPSP_create_page(HPROPSHEETPAGE hpsp, DLGTEMPLATE *template, HWND pa
{
HWND
hwnd
;
if
(
hpsp
->
psp
.
dwFlags
&
PSP_INTERNAL_UNICODE
)
if
(
hpsp
->
unicode
)
{
hwnd
=
CreateDialogIndirectParamW
(
hpsp
->
psp
.
hInstance
,
template
,
parent
,
hpsp
->
psp
.
pfnDlgProc
,
(
LPARAM
)
&
hpsp
->
psp
);
...
...
@@ -3017,8 +3016,6 @@ HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(
min
(
lpPropSheetPage
->
dwSize
,
sizeof
(
PROPSHEETPAGEA
)));
}
ppsp
->
dwFlags
&=
~
PSP_INTERNAL_UNICODE
;
if
(
!
(
ppsp
->
dwFlags
&
PSP_DLGINDIRECT
)
)
{
if
(
!
IS_INTRESOURCE
(
ppsp
->
u
.
pszTemplate
))
...
...
@@ -3088,6 +3085,7 @@ HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW lpPropSheetPage
ret
=
Alloc
(
sizeof
(
*
ret
));
ret
->
magic
=
HPROPSHEETPAGE_MAGIC
;
ret
->
unicode
=
TRUE
;
ppsp
=
&
ret
->
psp
;
memcpy
(
ppsp
,
lpPropSheetPage
,
min
(
lpPropSheetPage
->
dwSize
,
sizeof
(
PROPSHEETPAGEW
)));
/* original data is used for callback notifications */
...
...
@@ -3097,8 +3095,6 @@ HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW lpPropSheetPage
min
(
lpPropSheetPage
->
dwSize
,
sizeof
(
PROPSHEETPAGEW
)));
}
ppsp
->
dwFlags
|=
PSP_INTERNAL_UNICODE
;
if
(
!
(
ppsp
->
dwFlags
&
PSP_DLGINDIRECT
)
)
{
if
(
!
IS_INTRESOURCE
(
ppsp
->
u
.
pszTemplate
))
...
...
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