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
027bd21b
Commit
027bd21b
authored
Dec 12, 2022
by
Huw Davies
Committed by
Alexandre Julliard
Dec 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Fix remaining printf format warnings.
parent
abec83e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+5
-5
opengl.c
dlls/winemac.drv/opengl.c
+2
-2
unixlib.h
dlls/winemac.drv/unixlib.h
+1
-1
No files found.
dlls/winemac.drv/macdrv_main.c
View file @
027bd21b
...
@@ -132,12 +132,12 @@ HKEY open_hkcu_key(const char *name)
...
@@ -132,12 +132,12 @@ HKEY open_hkcu_key(const char *name)
sid
=
((
TOKEN_USER
*
)
sid_data
)
->
User
.
Sid
;
sid
=
((
TOKEN_USER
*
)
sid_data
)
->
User
.
Sid
;
len
=
sprintf
(
buffer
,
"
\\
Registry
\\
User
\\
S-%u-%u"
,
sid
->
Revision
,
len
=
sprintf
(
buffer
,
"
\\
Registry
\\
User
\\
S-%u-%u"
,
sid
->
Revision
,
MAKELONG
(
MAKEWORD
(
sid
->
IdentifierAuthority
.
Value
[
5
],
(
unsigned
int
)
MAKELONG
(
MAKEWORD
(
sid
->
IdentifierAuthority
.
Value
[
5
],
sid
->
IdentifierAuthority
.
Value
[
4
]),
sid
->
IdentifierAuthority
.
Value
[
4
]),
MAKEWORD
(
sid
->
IdentifierAuthority
.
Value
[
3
],
MAKEWORD
(
sid
->
IdentifierAuthority
.
Value
[
3
],
sid
->
IdentifierAuthority
.
Value
[
2
])));
sid
->
IdentifierAuthority
.
Value
[
2
])));
for
(
i
=
0
;
i
<
sid
->
SubAuthorityCount
;
i
++
)
for
(
i
=
0
;
i
<
sid
->
SubAuthorityCount
;
i
++
)
len
+=
sprintf
(
buffer
+
len
,
"-%u"
,
sid
->
SubAuthority
[
i
]);
len
+=
sprintf
(
buffer
+
len
,
"-%u"
,
(
unsigned
int
)
sid
->
SubAuthority
[
i
]);
ascii_to_unicode
(
bufferW
,
buffer
,
len
);
ascii_to_unicode
(
bufferW
,
buffer
,
len
);
hkcu
=
reg_open_key
(
NULL
,
bufferW
,
len
*
sizeof
(
WCHAR
));
hkcu
=
reg_open_key
(
NULL
,
bufferW
,
len
*
sizeof
(
WCHAR
));
...
...
dlls/winemac.drv/opengl.c
View file @
027bd21b
...
@@ -76,7 +76,7 @@ struct wgl_context
...
@@ -76,7 +76,7 @@ struct wgl_context
BOOL
sharing
;
BOOL
sharing
;
LONG
update_swap_interval
;
LONG
update_swap_interval
;
LONG
view_moved
;
LONG
view_moved
;
DWORD
last_flush_time
;
unsigned
int
last_flush_time
;
UINT
major
;
UINT
major
;
};
};
...
@@ -2222,7 +2222,7 @@ static void macdrv_glFlush(void)
...
@@ -2222,7 +2222,7 @@ static void macdrv_glFlush(void)
if
(
skip_single_buffer_flushes
)
if
(
skip_single_buffer_flushes
)
{
{
const
pixel_format
*
pf
=
&
pixel_formats
[
context
->
format
-
1
];
const
pixel_format
*
pf
=
&
pixel_formats
[
context
->
format
-
1
];
DWORD
now
=
NtGetTickCount
();
unsigned
int
now
=
NtGetTickCount
();
TRACE
(
"double buffer %d last flush time %d now %d
\n
"
,
(
int
)
pf
->
double_buffer
,
TRACE
(
"double buffer %d last flush time %d now %d
\n
"
,
(
int
)
pf
->
double_buffer
,
context
->
last_flush_time
,
now
);
context
->
last_flush_time
,
now
);
...
...
dlls/winemac.drv/unixlib.h
View file @
027bd21b
...
@@ -87,7 +87,7 @@ struct init_params
...
@@ -87,7 +87,7 @@ struct init_params
/* macdrv_notify_icon params */
/* macdrv_notify_icon params */
struct
notify_icon_params
struct
notify_icon_params
{
{
DWORD
msg
;
unsigned
int
msg
;
struct
_NOTIFYICONDATAW
*
data
;
struct
_NOTIFYICONDATAW
*
data
;
};
};
...
...
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