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
cb8ef7d2
Commit
cb8ef7d2
authored
Jan 31, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dialog window should not be destroyed in DefDlgProc; this break
modeless dialogs.
parent
57f96abe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
20 deletions
+0
-20
dialog.h
include/dialog.h
+0
-1
defdlg.c
windows/defdlg.c
+0
-18
dialog.c
windows/dialog.c
+0
-1
No files found.
include/dialog.h
View file @
cb8ef7d2
...
...
@@ -38,7 +38,6 @@ typedef struct
#pragma pack(4)
#define DF_END 0x0001
#define DF_ENDING 0x0002
extern
BOOL32
DIALOG_Init
(
void
);
extern
HWND32
DIALOG_CreateIndirect
(
HINSTANCE32
hInst
,
LPCSTR
dlgTemplate
,
...
...
windows/defdlg.c
View file @
cb8ef7d2
...
...
@@ -266,12 +266,6 @@ LRESULT WINAPI DefDlgProc16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam,
/* 16 bit dlg procs only return BOOL16 */
if
(
WINPROC_GetProcType
(
dlgInfo
->
dlgProc
)
==
WIN_PROC_16
)
result
=
LOWORD
(
result
);
/* Check if window was destroyed by dialog procedure */
if
(
dlgInfo
->
flags
&
DF_END
&&
!
(
dlgInfo
->
flags
&
DF_ENDING
))
{
dlgInfo
->
flags
|=
DF_ENDING
;
DestroyWindow32
(
hwnd
);
}
}
if
(
!
result
&&
IsWindow32
(
hwnd
))
...
...
@@ -329,12 +323,6 @@ LRESULT WINAPI DefDlgProc32A( HWND32 hwnd, UINT32 msg,
/* 16 bit dlg procs only return BOOL16 */
if
(
WINPROC_GetProcType
(
dlgInfo
->
dlgProc
)
==
WIN_PROC_16
)
result
=
LOWORD
(
result
);
/* Check if window was destroyed by dialog procedure */
if
(
dlgInfo
->
flags
&
DF_END
&&
!
(
dlgInfo
->
flags
&
DF_ENDING
))
{
dlgInfo
->
flags
|=
DF_ENDING
;
DestroyWindow32
(
hwnd
);
}
}
if
(
!
result
&&
IsWindow32
(
hwnd
))
...
...
@@ -392,12 +380,6 @@ LRESULT WINAPI DefDlgProc32W( HWND32 hwnd, UINT32 msg, WPARAM32 wParam,
/* 16 bit dlg procs only return BOOL16 */
if
(
WINPROC_GetProcType
(
dlgInfo
->
dlgProc
)
==
WIN_PROC_16
)
result
=
LOWORD
(
result
);
/* Check if window was destroyed by dialog procedure */
if
(
dlgInfo
->
flags
&
DF_END
&&
!
(
dlgInfo
->
flags
&
DF_ENDING
))
{
dlgInfo
->
flags
|=
DF_ENDING
;
DestroyWindow32
(
hwnd
);
}
}
if
(
!
result
&&
IsWindow32
(
hwnd
))
...
...
windows/dialog.c
View file @
cb8ef7d2
...
...
@@ -869,7 +869,6 @@ INT32 DIALOG_DoDialogBox( HWND32 hwnd, HWND32 owner )
}
retval
=
dlgInfo
->
idResult
;
EnableWindow32
(
owner
,
TRUE
);
dlgInfo
->
flags
|=
DF_ENDING
;
/* try to stop it being destroyed twice */
DestroyWindow32
(
hwnd
);
return
retval
;
}
...
...
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