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
43a072b1
Commit
43a072b1
authored
Jul 30, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Fix some compatibility problems.
parent
0faf3f8a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
12 deletions
+23
-12
drive.c
programs/winecfg/drive.c
+4
-4
libraries.c
programs/winecfg/libraries.c
+1
-0
theme.c
programs/winecfg/theme.c
+10
-0
winecfg.c
programs/winecfg/winecfg.c
+8
-8
No files found.
programs/winecfg/drive.c
View file @
43a072b1
...
...
@@ -168,10 +168,10 @@ static DWORD get_drive_type( char letter )
if
(
!
RegQueryValueExA
(
hKey
,
driveValue
,
NULL
,
NULL
,
(
LPBYTE
)
buffer
,
&
size
))
{
WINE_TRACE
(
"Got type '%s' for %s
\n
"
,
buffer
,
driveValue
);
if
(
!
strcasecmp
(
buffer
,
"hd"
))
ret
=
DRIVE_FIXED
;
else
if
(
!
strcasecmp
(
buffer
,
"network"
))
ret
=
DRIVE_REMOTE
;
else
if
(
!
strcasecmp
(
buffer
,
"floppy"
))
ret
=
DRIVE_REMOVABLE
;
else
if
(
!
strcasecmp
(
buffer
,
"cdrom"
))
ret
=
DRIVE_CDROM
;
if
(
!
lstrcmpi
(
buffer
,
"hd"
))
ret
=
DRIVE_FIXED
;
else
if
(
!
lstrcmpi
(
buffer
,
"network"
))
ret
=
DRIVE_REMOTE
;
else
if
(
!
lstrcmpi
(
buffer
,
"floppy"
))
ret
=
DRIVE_REMOVABLE
;
else
if
(
!
lstrcmpi
(
buffer
,
"cdrom"
))
ret
=
DRIVE_CDROM
;
}
RegCloseKey
(
hKey
);
}
...
...
programs/winecfg/libraries.c
View file @
43a072b1
...
...
@@ -21,6 +21,7 @@
*/
#include "config.h"
#include "wine/port.h"
#define NONAMELESSUNION
#define WIN32_LEAN_AND_MEAN
...
...
programs/winecfg/theme.c
View file @
43a072b1
...
...
@@ -22,11 +22,21 @@
*
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_DIRECT_H
#include <direct.h>
#endif
#define COBJMACROS
...
...
programs/winecfg/winecfg.c
View file @
43a072b1
...
...
@@ -317,9 +317,9 @@ char *get_reg_key(HKEY root, const char *path, const char *name, const char *def
s
=
LIST_ENTRY
(
cursor
,
struct
setting
,
entry
);
if
(
root
!=
s
->
root
)
continue
;
if
(
strcasecmp
(
path
,
s
->
path
)
!=
0
)
continue
;
if
(
lstrcmpi
(
path
,
s
->
path
)
!=
0
)
continue
;
if
(
!
s
->
name
)
continue
;
if
(
strcasecmp
(
name
,
s
->
name
)
!=
0
)
continue
;
if
(
lstrcmpi
(
name
,
s
->
name
)
!=
0
)
continue
;
WINE_TRACE
(
"found %s:%s in settings list, returning %s
\n
"
,
path
,
name
,
s
->
value
);
return
s
->
value
?
strdupA
(
s
->
value
)
:
NULL
;
...
...
@@ -363,8 +363,8 @@ static void set_reg_key_ex(HKEY root, const char *path, const char *name, const
struct
setting
*
s
=
LIST_ENTRY
(
cursor
,
struct
setting
,
entry
);
if
(
root
!=
s
->
root
)
continue
;
if
(
strcasecmp
(
s
->
path
,
path
)
!=
0
)
continue
;
if
((
s
->
name
&&
name
)
&&
strcasecmp
(
s
->
name
,
name
)
!=
0
)
continue
;
if
(
lstrcmpi
(
s
->
path
,
path
)
!=
0
)
continue
;
if
((
s
->
name
&&
name
)
&&
lstrcmpi
(
s
->
name
,
name
)
!=
0
)
continue
;
/* are we attempting a double delete? */
if
(
!
s
->
name
&&
!
name
)
return
;
...
...
@@ -463,8 +463,8 @@ char **enumerate_values(HKEY root, char *path)
LIST_FOR_EACH
(
cursor
,
settings
)
{
struct
setting
*
s
=
LIST_ENTRY
(
cursor
,
struct
setting
,
entry
);
if
(
strcasecmp
(
s
->
path
,
path
)
!=
0
)
continue
;
if
(
strcasecmp
(
s
->
name
,
name
)
!=
0
)
continue
;
if
(
lstrcmpi
(
s
->
path
,
path
)
!=
0
)
continue
;
if
(
lstrcmpi
(
s
->
name
,
name
)
!=
0
)
continue
;
if
(
!
s
->
value
)
{
...
...
@@ -503,13 +503,13 @@ char **enumerate_values(HKEY root, char *path)
struct
setting
*
setting
=
LIST_ENTRY
(
cursor
,
struct
setting
,
entry
);
BOOL
found
=
FALSE
;
if
(
strcasecmp
(
setting
->
path
,
path
)
!=
0
)
continue
;
if
(
lstrcmpi
(
setting
->
path
,
path
)
!=
0
)
continue
;
if
(
!
setting
->
value
)
continue
;
for
(
i
=
0
;
i
<
valueslen
;
i
++
)
{
if
(
strcasecmp
(
setting
->
name
,
values
[
i
])
==
0
)
if
(
lstrcmpi
(
setting
->
name
,
values
[
i
])
==
0
)
{
found
=
TRUE
;
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