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
cc1a9e23
Commit
cc1a9e23
authored
Jan 31, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtworkq: Fix long types warnings.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5bb7a6d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
30 deletions
+29
-30
Makefile.in
dlls/rtworkq/Makefile.in
+0
-1
queue.c
dlls/rtworkq/queue.c
+29
-29
No files found.
dlls/rtworkq/Makefile.in
View file @
cc1a9e23
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
rtworkq.dll
IMPORTLIB
=
rtworkq
IMPORTS
=
ole32
...
...
dlls/rtworkq/queue.c
View file @
cc1a9e23
...
...
@@ -426,7 +426,7 @@ static void CALLBACK serial_queue_finalization_callback(PTP_CALLBACK_INSTANCE in
if
(
SUCCEEDED
(
hr
=
grab_queue
(
queue
->
target_queue
,
&
target_queue
)))
target_queue
->
ops
->
submit
(
target_queue
,
next_item
);
else
WARN
(
"Failed to grab queue for id %#
x, hr %#
x.
\n
"
,
queue
->
target_queue
,
hr
);
WARN
(
"Failed to grab queue for id %#
lx, hr %#l
x.
\n
"
,
queue
->
target_queue
,
hr
);
}
LeaveCriticalSection
(
&
queue
->
cs
);
...
...
@@ -478,7 +478,7 @@ static void serial_queue_submit(struct queue *queue, struct work_item *item)
if
(
item
->
flags
&
RTWQ_REPLY_CALLBACK
)
{
if
(
FAILED
(
hr
=
RtwqCreateAsyncResult
(
NULL
,
&
queue
->
IRtwqAsyncCallback_iface
,
NULL
,
&
item
->
reply_result
)))
WARN
(
"Failed to create reply object, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create reply object, hr %#
l
x.
\n
"
,
hr
);
}
else
item
->
finalization_callback
=
queue
->
finalization_callback
;
...
...
@@ -512,7 +512,7 @@ static void serial_queue_submit(struct queue *queue, struct work_item *item)
if
(
SUCCEEDED
(
hr
=
grab_queue
(
queue
->
target_queue
,
&
target_queue
)))
target_queue
->
ops
->
submit
(
target_queue
,
next_item
);
else
WARN
(
"Failed to grab queue for id %#
x, hr %#
x.
\n
"
,
queue
->
target_queue
,
hr
);
WARN
(
"Failed to grab queue for id %#
lx, hr %#l
x.
\n
"
,
queue
->
target_queue
,
hr
);
}
LeaveCriticalSection
(
&
queue
->
cs
);
...
...
@@ -875,7 +875,7 @@ static HRESULT queue_cancel_item(struct queue *queue, RTWQWORKITEM_KEY key)
else
if
((
key
&
SCHEDULED_ITEM_KEY_MASK
)
==
SCHEDULED_ITEM_KEY_MASK
)
CloseThreadpoolTimer
(
item
->
u
.
timer_object
);
else
WARN
(
"Unknown item key mask %#x.
\n
"
,
(
DWORD
)
key
);
WARN
(
"Unknown item key mask %#
l
x.
\n
"
,
(
DWORD
)
key
);
queue_release_pending_item
(
item
);
hr
=
S_OK
;
break
;
...
...
@@ -964,7 +964,7 @@ static ULONG WINAPI async_result_AddRef(IRtwqAsyncResult *iface)
struct
async_result
*
result
=
impl_from_IRtwqAsyncResult
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
result
->
refcount
);
TRACE
(
"%p, %u.
\n
"
,
iface
,
refcount
);
TRACE
(
"%p, %
l
u.
\n
"
,
iface
,
refcount
);
return
refcount
;
}
...
...
@@ -974,7 +974,7 @@ static ULONG WINAPI async_result_Release(IRtwqAsyncResult *iface)
struct
async_result
*
result
=
impl_from_IRtwqAsyncResult
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
result
->
refcount
);
TRACE
(
"%p, %u.
\n
"
,
iface
,
refcount
);
TRACE
(
"%p, %
l
u.
\n
"
,
iface
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -1022,7 +1022,7 @@ static HRESULT WINAPI async_result_SetStatus(IRtwqAsyncResult *iface, HRESULT st
{
struct
async_result
*
result
=
impl_from_IRtwqAsyncResult
(
iface
);
TRACE
(
"%p, %#x.
\n
"
,
iface
,
status
);
TRACE
(
"%p, %#
l
x.
\n
"
,
iface
,
status
);
result
->
result
.
hrStatusResult
=
status
;
...
...
@@ -1134,7 +1134,7 @@ static void init_system_queues(void)
}
if
(
FAILED
(
hr
=
CoIncrementMTAUsage
(
&
mta_cookie
)))
WARN
(
"Failed to initialize MTA, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to initialize MTA, hr %#
l
x.
\n
"
,
hr
);
desc
.
queue_type
=
RTWQ_STANDARD_WORKQUEUE
;
desc
.
ops
=
&
pool_queue_ops
;
...
...
@@ -1167,7 +1167,7 @@ static void shutdown_system_queues(void)
}
if
(
FAILED
(
hr
=
CoDecrementMTAUsage
(
mta_cookie
)))
WARN
(
"Failed to uninitialize MTA, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to uninitialize MTA, hr %#
l
x.
\n
"
,
hr
);
LeaveCriticalSection
(
&
queues_section
);
}
...
...
@@ -1190,7 +1190,7 @@ HRESULT WINAPI RtwqPutWaitingWorkItem(HANDLE event, LONG priority, IRtwqAsyncRes
struct
queue
*
queue
;
HRESULT
hr
;
TRACE
(
"%p, %d, %p, %p.
\n
"
,
event
,
priority
,
result
,
key
);
TRACE
(
"%p, %
l
d, %p, %p.
\n
"
,
event
,
priority
,
result
,
key
);
if
(
FAILED
(
hr
=
grab_queue
(
RTWQ_CALLBACK_QUEUE_TIMER
,
&
queue
)))
return
hr
;
...
...
@@ -1251,7 +1251,7 @@ static ULONG WINAPI periodic_callback_AddRef(IRtwqAsyncCallback *iface)
struct
periodic_callback
*
callback
=
impl_from_IRtwqAsyncCallback
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
callback
->
refcount
);
TRACE
(
"%p, %u.
\n
"
,
iface
,
refcount
);
TRACE
(
"%p, %
l
u.
\n
"
,
iface
,
refcount
);
return
refcount
;
}
...
...
@@ -1261,7 +1261,7 @@ static ULONG WINAPI periodic_callback_Release(IRtwqAsyncCallback *iface)
struct
periodic_callback
*
callback
=
impl_from_IRtwqAsyncCallback
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
callback
->
refcount
);
TRACE
(
"%p, %u.
\n
"
,
iface
,
refcount
);
TRACE
(
"%p, %
l
u.
\n
"
,
iface
,
refcount
);
if
(
!
refcount
)
free
(
callback
);
...
...
@@ -1352,7 +1352,7 @@ HRESULT WINAPI RtwqRemovePeriodicCallback(DWORD key)
struct
queue
*
queue
;
HRESULT
hr
;
TRACE
(
"%#x.
\n
"
,
key
);
TRACE
(
"%#
l
x.
\n
"
,
key
);
if
(
FAILED
(
hr
=
grab_queue
(
RTWQ_CALLBACK_QUEUE_TIMER
,
&
queue
)))
return
hr
;
...
...
@@ -1382,7 +1382,7 @@ HRESULT WINAPI RtwqInvokeCallback(IRtwqAsyncResult *result)
HRESULT
WINAPI
RtwqPutWorkItem
(
DWORD
queue
,
LONG
priority
,
IRtwqAsyncResult
*
result
)
{
TRACE
(
"%#
x, %
d, %p.
\n
"
,
queue
,
priority
,
result
);
TRACE
(
"%#
lx, %l
d, %p.
\n
"
,
queue
,
priority
,
result
);
return
queue_put_work_item
(
queue
,
priority
,
result
);
}
...
...
@@ -1401,14 +1401,14 @@ HRESULT WINAPI RtwqAllocateWorkQueue(RTWQ_WORKQUEUE_TYPE queue_type, DWORD *queu
HRESULT
WINAPI
RtwqLockWorkQueue
(
DWORD
queue
)
{
TRACE
(
"%#x.
\n
"
,
queue
);
TRACE
(
"%#
l
x.
\n
"
,
queue
);
return
lock_user_queue
(
queue
);
}
HRESULT
WINAPI
RtwqUnlockWorkQueue
(
DWORD
queue
)
{
TRACE
(
"%#x.
\n
"
,
queue
);
TRACE
(
"%#
l
x.
\n
"
,
queue
);
return
unlock_user_queue
(
queue
);
}
...
...
@@ -1419,7 +1419,7 @@ HRESULT WINAPI RtwqSetLongRunning(DWORD queue_id, BOOL enable)
HRESULT
hr
;
int
i
;
TRACE
(
"%#x, %d.
\n
"
,
queue_id
,
enable
);
TRACE
(
"%#
l
x, %d.
\n
"
,
queue_id
,
enable
);
lock_user_queue
(
queue_id
);
...
...
@@ -1439,7 +1439,7 @@ HRESULT WINAPI RtwqLockSharedWorkQueue(const WCHAR *usageclass, LONG priority, D
struct
queue_desc
desc
;
HRESULT
hr
;
TRACE
(
"%s, %d, %p, %p.
\n
"
,
debugstr_w
(
usageclass
),
priority
,
taskid
,
queue
);
TRACE
(
"%s, %
l
d, %p, %p.
\n
"
,
debugstr_w
(
usageclass
),
priority
,
taskid
,
queue
);
if
(
!
usageclass
)
return
E_POINTER
;
...
...
@@ -1471,14 +1471,14 @@ HRESULT WINAPI RtwqLockSharedWorkQueue(const WCHAR *usageclass, LONG priority, D
HRESULT
WINAPI
RtwqSetDeadline
(
DWORD
queue_id
,
LONGLONG
deadline
,
HANDLE
*
request
)
{
FIXME
(
"%#x, %s, %p.
\n
"
,
queue_id
,
wine_dbgstr_longlong
(
deadline
),
request
);
FIXME
(
"%#
l
x, %s, %p.
\n
"
,
queue_id
,
wine_dbgstr_longlong
(
deadline
),
request
);
return
E_NOTIMPL
;
}
HRESULT
WINAPI
RtwqSetDeadline2
(
DWORD
queue_id
,
LONGLONG
deadline
,
LONGLONG
predeadline
,
HANDLE
*
request
)
{
FIXME
(
"%#x, %s, %s, %p.
\n
"
,
queue_id
,
wine_dbgstr_longlong
(
deadline
),
wine_dbgstr_longlong
(
predeadline
),
request
);
FIXME
(
"%#
l
x, %s, %s, %p.
\n
"
,
queue_id
,
wine_dbgstr_longlong
(
deadline
),
wine_dbgstr_longlong
(
predeadline
),
request
);
return
E_NOTIMPL
;
}
...
...
@@ -1494,7 +1494,7 @@ HRESULT WINAPI RtwqAllocateSerialWorkQueue(DWORD target_queue, DWORD *queue)
{
struct
queue_desc
desc
;
TRACE
(
"%#x, %p.
\n
"
,
target_queue
,
queue
);
TRACE
(
"%#
l
x, %p.
\n
"
,
target_queue
,
queue
);
desc
.
queue_type
=
RTWQ_STANDARD_WORKQUEUE
;
desc
.
ops
=
&
serial_queue_ops
;
...
...
@@ -1504,42 +1504,42 @@ HRESULT WINAPI RtwqAllocateSerialWorkQueue(DWORD target_queue, DWORD *queue)
HRESULT
WINAPI
RtwqJoinWorkQueue
(
DWORD
queue
,
HANDLE
hFile
,
HANDLE
*
cookie
)
{
FIXME
(
"%#x, %p, %p.
\n
"
,
queue
,
hFile
,
cookie
);
FIXME
(
"%#
l
x, %p, %p.
\n
"
,
queue
,
hFile
,
cookie
);
return
E_NOTIMPL
;
}
HRESULT
WINAPI
RtwqUnjoinWorkQueue
(
DWORD
queue
,
HANDLE
cookie
)
{
FIXME
(
"%#x, %p.
\n
"
,
queue
,
cookie
);
FIXME
(
"%#
l
x, %p.
\n
"
,
queue
,
cookie
);
return
E_NOTIMPL
;
}
HRESULT
WINAPI
RtwqGetWorkQueueMMCSSClass
(
DWORD
queue
,
WCHAR
*
class
,
DWORD
*
length
)
{
FIXME
(
"%#x, %p, %p.
\n
"
,
queue
,
class
,
length
);
FIXME
(
"%#
l
x, %p, %p.
\n
"
,
queue
,
class
,
length
);
return
E_NOTIMPL
;
}
HRESULT
WINAPI
RtwqGetWorkQueueMMCSSTaskId
(
DWORD
queue
,
DWORD
*
taskid
)
{
FIXME
(
"%#x, %p.
\n
"
,
queue
,
taskid
);
FIXME
(
"%#
l
x, %p.
\n
"
,
queue
,
taskid
);
return
E_NOTIMPL
;
}
HRESULT
WINAPI
RtwqGetWorkQueueMMCSSPriority
(
DWORD
queue
,
LONG
*
priority
)
{
FIXME
(
"%#x, %p.
\n
"
,
queue
,
priority
);
FIXME
(
"%#
l
x, %p.
\n
"
,
queue
,
priority
);
return
E_NOTIMPL
;
}
HRESULT
WINAPI
RtwqRegisterPlatformWithMMCSS
(
const
WCHAR
*
class
,
DWORD
*
taskid
,
LONG
priority
)
{
FIXME
(
"%s, %p, %d.
\n
"
,
debugstr_w
(
class
),
taskid
,
priority
);
FIXME
(
"%s, %p, %
l
d.
\n
"
,
debugstr_w
(
class
),
taskid
,
priority
);
return
E_NOTIMPL
;
}
...
...
@@ -1554,7 +1554,7 @@ HRESULT WINAPI RtwqUnregisterPlatformFromMMCSS(void)
HRESULT
WINAPI
RtwqBeginRegisterWorkQueueWithMMCSS
(
DWORD
queue
,
const
WCHAR
*
class
,
DWORD
taskid
,
LONG
priority
,
IRtwqAsyncCallback
*
callback
,
IUnknown
*
state
)
{
FIXME
(
"%#
x, %s, %u, %
d, %p, %p.
\n
"
,
queue
,
debugstr_w
(
class
),
taskid
,
priority
,
callback
,
state
);
FIXME
(
"%#
lx, %s, %lu, %l
d, %p, %p.
\n
"
,
queue
,
debugstr_w
(
class
),
taskid
,
priority
,
callback
,
state
);
return
E_NOTIMPL
;
}
...
...
@@ -1568,7 +1568,7 @@ HRESULT WINAPI RtwqEndRegisterWorkQueueWithMMCSS(IRtwqAsyncResult *result, DWORD
HRESULT
WINAPI
RtwqBeginUnregisterWorkQueueWithMMCSS
(
DWORD
queue
,
IRtwqAsyncCallback
*
callback
,
IUnknown
*
state
)
{
FIXME
(
"%#x, %p, %p.
\n
"
,
queue
,
callback
,
state
);
FIXME
(
"%#
l
x, %p, %p.
\n
"
,
queue
,
callback
,
state
);
return
E_NOTIMPL
;
}
...
...
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