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
ca7f9232
Commit
ca7f9232
authored
Apr 09, 2000
by
Dave Pickles
Committed by
Alexandre Julliard
Apr 09, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Registry key used in LoadBoard() was not the same as the one used in
SaveBoard(). Also fixed a typo in the position saving code.
parent
d1735c61
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.c
programs/winemine/main.c
+3
-3
No files found.
programs/winemine/main.c
View file @
ca7f9232
...
...
@@ -295,9 +295,9 @@ void LoadBoard( BOARD *p_board )
size
=
sizeof
(
data
);
if
(
RegQueryValueEx
(
hkey
,
"Ypos"
,
NULL
,
(
LPDWORD
)
&
type
,
(
LPBYTE
)
data
,
(
LPDWORD
)
&
size
)
==
ERROR_SUCCESS
)
p_board
->
pos
.
x
=
atoi
(
data
);
p_board
->
pos
.
y
=
atoi
(
data
);
else
p_board
->
pos
.
x
=
GetSystemMetrics
(
SM_CYMENU
)
p_board
->
pos
.
y
=
GetSystemMetrics
(
SM_CYMENU
)
+
GetSystemMetrics
(
SM_CYCAPTION
)
+
GetSystemMetrics
(
SM_CYFIXEDFRAME
);
...
...
@@ -370,7 +370,7 @@ void SaveBoard( BOARD *p_board )
char
key_name
[
8
];
if
(
RegCreateKeyEx
(
HKEY_LOCAL_MACHINE
,
"Software
\\
The WINE team
\\
WineMine"
,
0
,
NULL
,
"Software
\\
Wine
\\
WineMine"
,
0
,
NULL
,
REG_OPTION_NON_VOLATILE
,
KEY_WRITE
,
&
sa
,
&
hkey
,
&
disp
)
!=
ERROR_SUCCESS
)
return
;
...
...
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