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
1af319d9
Commit
1af319d9
authored
Mar 07, 2003
by
Adam Gundy
Committed by
Alexandre Julliard
Mar 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PROPSHEET_CreateDialog() is documented to return -1 on failure, and
the dialog handle on success.
parent
3ff6a487
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
propsheet.c
dlls/comctl32/propsheet.c
+13
-10
No files found.
dlls/comctl32/propsheet.c
View file @
1af319d9
...
...
@@ -118,7 +118,7 @@ const WCHAR PropSheetInfoStr[] =
/******************************************************************************
* Prototypes
*/
static
BOOL
PROPSHEET_CreateDialog
(
PropSheetInfo
*
psInfo
);
static
int
PROPSHEET_CreateDialog
(
PropSheetInfo
*
psInfo
);
static
BOOL
PROPSHEET_SizeMismatch
(
HWND
hwndDlg
,
PropSheetInfo
*
psInfo
);
static
BOOL
PROPSHEET_AdjustSize
(
HWND
hwndDlg
,
PropSheetInfo
*
psInfo
);
static
BOOL
PROPSHEET_AdjustButtons
(
HWND
hwndParent
,
PropSheetInfo
*
psInfo
);
...
...
@@ -552,7 +552,7 @@ BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
*
* Creates the actual property sheet.
*/
BOOL
PROPSHEET_CreateDialog
(
PropSheetInfo
*
psInfo
)
int
PROPSHEET_CreateDialog
(
PropSheetInfo
*
psInfo
)
{
LRESULT
ret
;
LPCVOID
template
;
...
...
@@ -568,10 +568,10 @@ BOOL PROPSHEET_CreateDialog(PropSheetInfo* psInfo)
if
(
!
(
hRes
=
FindResourceW
(
COMCTL32_hModule
,
MAKEINTRESOURCEW
(
resID
),
RT_DIALOGW
)))
return
FALSE
;
return
-
1
;
if
(
!
(
template
=
(
LPVOID
)
LoadResource
(
COMCTL32_hModule
,
hRes
)))
return
FALSE
;
return
-
1
;
/*
* Make a copy of the dialog template.
...
...
@@ -581,7 +581,7 @@ BOOL PROPSHEET_CreateDialog(PropSheetInfo* psInfo)
temp
=
COMCTL32_Alloc
(
resSize
);
if
(
!
temp
)
return
FALSE
;
return
-
1
;
memcpy
(
temp
,
template
,
resSize
);
...
...
@@ -595,11 +595,14 @@ BOOL PROPSHEET_CreateDialog(PropSheetInfo* psInfo)
PROPSHEET_DialogProc
,
(
LPARAM
)
psInfo
);
else
ret
=
CreateDialogIndirectParamW
(
psInfo
->
ppshheader
.
hInstance
,
(
LPDLGTEMPLATEW
)
temp
,
psInfo
->
ppshheader
.
hwndParent
,
PROPSHEET_DialogProc
,
(
LPARAM
)
psInfo
)
?
TRUE
:
FALSE
;
{
ret
=
(
int
)
CreateDialogIndirectParamW
(
psInfo
->
ppshheader
.
hInstance
,
(
LPDLGTEMPLATEW
)
temp
,
psInfo
->
ppshheader
.
hwndParent
,
PROPSHEET_DialogProc
,
(
LPARAM
)
psInfo
);
if
(
!
ret
)
ret
=
-
1
;
}
COMCTL32_Free
(
temp
);
...
...
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