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
50a4503c
Commit
50a4503c
authored
Sep 29, 2003
by
Pavel Roskin
Committed by
Alexandre Julliard
Sep 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix processing of IDCANCEL command.
Don't change settings if the user canceled the "Custom" dialog.
parent
803d9a89
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
dialog.c
programs/winemine/dialog.c
+3
-2
main.c
programs/winemine/main.c
+7
-3
No files found.
programs/winemine/dialog.c
View file @
50a4503c
...
...
@@ -47,7 +47,7 @@ BOOL CALLBACK CustomDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
return
TRUE
;
case
IDCANCEL
:
EndDialog
(
hDlg
,
0
);
EndDialog
(
hDlg
,
1
);
return
TRUE
;
}
break
;
...
...
@@ -105,6 +105,7 @@ BOOL CALLBACK TimesDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam )
case
WM_COMMAND
:
switch
(
LOWORD
(
wParam
)
)
{
case
IDOK
:
case
IDCANCEL
:
EndDialog
(
hDlg
,
0
);
return
TRUE
;
}
...
...
@@ -122,6 +123,7 @@ BOOL CALLBACK AboutDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam )
case
WM_COMMAND
:
switch
(
LOWORD
(
wParam
)
)
{
case
IDOK
:
case
IDCANCEL
:
EndDialog
(
hDlg
,
0
);
return
TRUE
;
}
...
...
@@ -129,4 +131,3 @@ BOOL CALLBACK AboutDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam )
}
return
FALSE
;
}
programs/winemine/main.c
View file @
50a4503c
...
...
@@ -441,8 +441,14 @@ void DestroyBoard( BOARD *p_board )
void
SetDifficulty
(
BOARD
*
p_board
,
DIFFICULTY
difficulty
)
{
HMENU
hMenu
=
GetMenu
(
p_board
->
hWnd
);
HMENU
hMenu
;
if
(
difficulty
==
CUSTOM
)
if
(
DialogBoxParam
(
p_board
->
hInst
,
"DLG_CUSTOM"
,
p_board
->
hWnd
,
CustomDlgProc
,
(
LPARAM
)
p_board
)
!=
0
)
return
;
hMenu
=
GetMenu
(
p_board
->
hWnd
);
CheckMenuItem
(
hMenu
,
IDM_BEGINNER
+
p_board
->
difficulty
,
MF_UNCHECKED
);
p_board
->
difficulty
=
difficulty
;
CheckMenuItem
(
hMenu
,
IDM_BEGINNER
+
difficulty
,
MF_CHECKED
);
...
...
@@ -467,8 +473,6 @@ void SetDifficulty( BOARD *p_board, DIFFICULTY difficulty )
break
;
case
CUSTOM
:
DialogBoxParam
(
p_board
->
hInst
,
"DLG_CUSTOM"
,
p_board
->
hWnd
,
CustomDlgProc
,
(
LPARAM
)
p_board
);
break
;
}
}
...
...
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