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
e09fc215
Commit
e09fc215
authored
Apr 02, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Use ULONG for a bitmask variable.
parent
1513dd20
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
drive.c
programs/winecfg/drive.c
+3
-3
drivedetect.c
programs/winecfg/drivedetect.c
+1
-1
driveui.c
programs/winecfg/driveui.c
+1
-1
winecfg.h
programs/winecfg/winecfg.h
+1
-1
No files found.
programs/winecfg/drive.c
View file @
e09fc215
...
...
@@ -72,9 +72,9 @@ static inline int letter_to_index(char letter)
* so the edit dialog can display the currently used drive letter
* alongside the available ones.
*/
long
drive_available_mask
(
char
letter
)
ULONG
drive_available_mask
(
char
letter
)
{
long
result
=
0
;
ULONG
result
=
0
;
int
i
;
WINE_TRACE
(
"
\n
"
);
...
...
@@ -89,7 +89,7 @@ long drive_available_mask(char letter)
result
=
~
result
;
if
(
letter
)
result
|=
DRIVE_MASK_BIT
(
letter
);
WINE_TRACE
(
"finished drive letter loop with %
l
x
\n
"
,
result
);
WINE_TRACE
(
"finished drive letter loop with %x
\n
"
,
result
);
return
result
;
}
...
...
programs/winecfg/drivedetect.c
View file @
e09fc215
...
...
@@ -43,7 +43,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
winecfg
);
BOOL
gui_mode
=
TRUE
;
static
long
working_mask
=
0
;
static
ULONG
working_mask
=
0
;
typedef
struct
{
...
...
programs/winecfg/driveui.c
View file @
e09fc215
...
...
@@ -300,7 +300,7 @@ static void on_add_click(HWND dialog)
then invoke the directory chooser dialog. */
char
new
=
'C'
;
/* we skip A and B, they are historically floppy drives */
long
mask
=
~
drive_available_mask
(
0
);
/* the mask is now which drives aren't available */
ULONG
mask
=
~
drive_available_mask
(
0
);
/* the mask is now which drives aren't available */
int
i
,
c
;
while
(
mask
&
(
1
<<
(
new
-
'A'
)))
...
...
programs/winecfg/winecfg.h
View file @
e09fc215
...
...
@@ -107,7 +107,7 @@ struct drive
#define DRIVE_MASK_BIT(B) (1 << (toupper(B) - 'A'))
long
drive_available_mask
(
char
letter
);
ULONG
drive_available_mask
(
char
letter
);
BOOL
add_drive
(
char
letter
,
const
char
*
targetpath
,
const
char
*
device
,
const
WCHAR
*
label
,
DWORD
serial
,
DWORD
type
);
void
delete_drive
(
struct
drive
*
pDrive
);
...
...
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