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
d75991d8
Commit
d75991d8
authored
Mar 02, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Removed unused owner argument.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ed661410
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
dialog.c
dlls/user.exe16/dialog.c
+2
-2
user_private.h
dlls/user.exe16/user_private.h
+1
-1
controls.h
dlls/user32/controls.h
+2
-2
dialog.c
dlls/user32/dialog.c
+5
-5
No files found.
dlls/user.exe16/dialog.c
View file @
d75991d8
...
...
@@ -744,7 +744,7 @@ INT16 WINAPI DialogBoxParam16( HINSTANCE16 hInst, LPCSTR template,
{
HWND
owner
=
WIN_Handle32
(
owner16
);
hwnd
=
DIALOG_CreateIndirect16
(
hInst
,
data
,
owner
,
dlgProc
,
param
,
TRUE
);
if
(
hwnd
)
ret
=
wow_handlers32
.
dialog_box_loop
(
hwnd
,
owner
);
if
(
hwnd
)
ret
=
wow_handlers32
.
dialog_box_loop
(
hwnd
);
GlobalUnlock16
(
hmem
);
}
FreeResource16
(
hmem
);
...
...
@@ -764,7 +764,7 @@ INT16 WINAPI DialogBoxIndirectParam16( HINSTANCE16 hInst, HANDLE16 dlgTemplate,
if
(
!
(
ptr
=
GlobalLock16
(
dlgTemplate
)))
return
-
1
;
hwnd
=
DIALOG_CreateIndirect16
(
hInst
,
ptr
,
owner
,
dlgProc
,
param
,
TRUE
);
GlobalUnlock16
(
dlgTemplate
);
if
(
hwnd
)
return
wow_handlers32
.
dialog_box_loop
(
hwnd
,
owner
);
if
(
hwnd
)
return
wow_handlers32
.
dialog_box_loop
(
hwnd
);
return
-
1
;
}
...
...
dlls/user.exe16/user_private.h
View file @
d75991d8
...
...
@@ -63,7 +63,7 @@ struct wow_handlers32
HWND
(
*
get_win_handle
)(
HWND
);
WNDPROC
(
*
alloc_winproc
)(
WNDPROC
,
BOOL
);
struct
tagDIALOGINFO
*
(
*
get_dialog_info
)(
HWND
,
BOOL
);
INT
(
*
dialog_box_loop
)(
HWND
,
HWND
);
INT
(
*
dialog_box_loop
)(
HWND
);
ULONG_PTR
(
*
get_icon_param
)(
HICON
);
ULONG_PTR
(
*
set_icon_param
)(
HICON
,
ULONG_PTR
);
};
...
...
dlls/user32/controls.h
View file @
d75991d8
...
...
@@ -121,7 +121,7 @@ struct wow_handlers32
HWND
(
*
get_win_handle
)(
HWND
);
WNDPROC
(
*
alloc_winproc
)(
WNDPROC
,
BOOL
);
struct
tagDIALOGINFO
*
(
*
get_dialog_info
)(
HWND
,
BOOL
);
INT
(
*
dialog_box_loop
)(
HWND
,
HWND
);
INT
(
*
dialog_box_loop
)(
HWND
);
ULONG_PTR
(
*
get_icon_param
)(
HICON
);
ULONG_PTR
(
*
set_icon_param
)(
HICON
,
ULONG_PTR
);
};
...
...
@@ -244,7 +244,7 @@ typedef struct tagDIALOGINFO
#define DF_OWNERENABLED 0x0002
extern
DIALOGINFO
*
DIALOG_get_info
(
HWND
hwnd
,
BOOL
create
)
DECLSPEC_HIDDEN
;
extern
INT
DIALOG_DoDialogBox
(
HWND
hwnd
,
HWND
owner
)
DECLSPEC_HIDDEN
;
extern
INT
DIALOG_DoDialogBox
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
HRGN
set_control_clipping
(
HDC
hdc
,
const
RECT
*
rect
)
DECLSPEC_HIDDEN
;
...
...
dlls/user32/dialog.c
View file @
d75991d8
...
...
@@ -769,14 +769,14 @@ HWND WINAPI CreateDialogIndirectParamW( HINSTANCE hInst, LPCDLGTEMPLATEW dlgTemp
/***********************************************************************
* DIALOG_DoDialogBox
*/
INT
DIALOG_DoDialogBox
(
HWND
hwnd
,
HWND
owner
)
INT
DIALOG_DoDialogBox
(
HWND
hwnd
)
{
HWND
owner
=
GetWindow
(
hwnd
,
GW_OWNER
);
DIALOGINFO
*
dlgInfo
;
MSG
msg
;
INT
retval
;
BOOL
bFirstEmpty
;
owner
=
GetWindow
(
hwnd
,
GW_OWNER
);
if
(
!
(
dlgInfo
=
DIALOG_get_info
(
hwnd
,
FALSE
)))
return
-
1
;
bFirstEmpty
=
TRUE
;
...
...
@@ -842,7 +842,7 @@ INT_PTR WINAPI DialogBoxParamA( HINSTANCE hInst, LPCSTR name,
if
(
!
(
hrsrc
=
FindResourceA
(
hInst
,
name
,
(
LPSTR
)
RT_DIALOG
)))
return
-
1
;
if
(
!
(
ptr
=
LoadResource
(
hInst
,
hrsrc
)))
return
-
1
;
hwnd
=
DIALOG_CreateIndirect
(
hInst
,
ptr
,
owner
,
dlgProc
,
param
,
FALSE
,
TRUE
);
if
(
hwnd
)
return
DIALOG_DoDialogBox
(
hwnd
,
owner
);
if
(
hwnd
)
return
DIALOG_DoDialogBox
(
hwnd
);
return
0
;
}
...
...
@@ -860,7 +860,7 @@ INT_PTR WINAPI DialogBoxParamW( HINSTANCE hInst, LPCWSTR name,
if
(
!
(
hrsrc
=
FindResourceW
(
hInst
,
name
,
(
LPWSTR
)
RT_DIALOG
)))
return
-
1
;
if
(
!
(
ptr
=
LoadResource
(
hInst
,
hrsrc
)))
return
-
1
;
hwnd
=
DIALOG_CreateIndirect
(
hInst
,
ptr
,
owner
,
dlgProc
,
param
,
TRUE
,
TRUE
);
if
(
hwnd
)
return
DIALOG_DoDialogBox
(
hwnd
,
owner
);
if
(
hwnd
)
return
DIALOG_DoDialogBox
(
hwnd
);
return
0
;
}
...
...
@@ -873,7 +873,7 @@ INT_PTR WINAPI DialogBoxIndirectParamAorW( HINSTANCE hInstance, LPCVOID template
LPARAM
param
,
DWORD
flags
)
{
HWND
hwnd
=
DIALOG_CreateIndirect
(
hInstance
,
template
,
owner
,
dlgProc
,
param
,
!
flags
,
TRUE
);
if
(
hwnd
)
return
DIALOG_DoDialogBox
(
hwnd
,
owner
);
if
(
hwnd
)
return
DIALOG_DoDialogBox
(
hwnd
);
return
-
1
;
}
...
...
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