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
699d4413
Commit
699d4413
authored
Oct 10, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Win64 printf format warning fixes.
parent
f041a2b0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
67 additions
and
67 deletions
+67
-67
Makefile.in
dlls/dplayx/Makefile.in
+1
-1
dplay.c
dlls/dplayx/dplay.c
+0
-0
dplaysp.c
dlls/dplayx/dplaysp.c
+17
-17
dplayx_global.c
dlls/dplayx/dplayx_global.c
+12
-12
dplayx_main.c
dlls/dplayx/dplayx_main.c
+2
-2
dplayx_messages.c
dlls/dplayx/dplayx_messages.c
+9
-9
dplobby.c
dlls/dplayx/dplobby.c
+24
-24
lobbysp.c
dlls/dplayx/lobbysp.c
+2
-2
No files found.
dlls/dplayx/Makefile.in
View file @
699d4413
EXTRADEFS
=
-DCOM_NO_WINDOWS_H
-DWINE_NO_LONG_AS_INT
EXTRADEFS
=
-DCOM_NO_WINDOWS_H
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
dlls/dplayx/dplay.c
View file @
699d4413
This diff is collapsed.
Click to expand it.
dlls/dplayx/dplaysp.c
View file @
699d4413
...
...
@@ -260,7 +260,7 @@ static ULONG WINAPI DPSP_AddRef
ulObjRefCount
=
InterlockedIncrement
(
&
This
->
unk
->
ulObjRef
);
ulInterfaceRefCount
=
InterlockedIncrement
(
&
This
->
ulInterfaceRef
);
TRACE
(
"ref count incremented to %
lu:%l
u for %p
\n
"
,
TRACE
(
"ref count incremented to %
u:%
u for %p
\n
"
,
ulInterfaceRefCount
,
ulObjRefCount
,
This
);
return
ulObjRefCount
;
...
...
@@ -275,7 +275,7 @@ static ULONG WINAPI DPSP_Release
ulObjRefCount
=
InterlockedDecrement
(
&
This
->
unk
->
ulObjRef
);
ulInterfaceRefCount
=
InterlockedDecrement
(
&
This
->
ulInterfaceRef
);
TRACE
(
"ref count decremented to %
lu:%l
u for %p
\n
"
,
TRACE
(
"ref count decremented to %
u:%
u for %p
\n
"
,
ulInterfaceRefCount
,
ulObjRefCount
,
This
);
/* Deallocate if this is the last reference to the object */
...
...
@@ -306,7 +306,7 @@ static HRESULT WINAPI IDirectPlaySPImpl_AddMRUEntry
/* Should be able to call the comctl32 undocumented MRU routines.
I suspect that the interface works appropriately */
FIXME
(
"(%p)->(%p,%p%p,0x%08
lx,0x%08l
x): stub
\n
"
,
FIXME
(
"(%p)->(%p,%p%p,0x%08
x,0x%08
x): stub
\n
"
,
This
,
lpSection
,
lpKey
,
lpData
,
dwDataSize
,
dwMaxEntries
);
return
DP_OK
;
...
...
@@ -324,7 +324,7 @@ static HRESULT WINAPI IDirectPlaySPImpl_CreateAddress
{
IDirectPlaySPImpl
*
This
=
(
IDirectPlaySPImpl
*
)
iface
;
FIXME
(
"(%p)->(%s,%s,%p,0x%08
l
x,%p,%p): stub
\n
"
,
FIXME
(
"(%p)->(%s,%s,%p,0x%08x,%p,%p): stub
\n
"
,
This
,
debugstr_guid
(
guidSP
),
debugstr_guid
(
guidDataType
),
lpData
,
dwDataSize
,
lpAddress
,
lpdwAddressSize
);
...
...
@@ -341,7 +341,7 @@ static HRESULT WINAPI IDirectPlaySPImpl_EnumAddress
{
IDirectPlaySPImpl
*
This
=
(
IDirectPlaySPImpl
*
)
iface
;
TRACE
(
"(%p)->(%p,%p,0x%08
l
x,%p)
\n
"
,
TRACE
(
"(%p)->(%p,%p,0x%08x,%p)
\n
"
,
This
,
lpEnumAddressCallback
,
lpAddress
,
dwAddressSize
,
lpContext
);
DPL_EnumAddress
(
lpEnumAddressCallback
,
lpAddress
,
dwAddressSize
,
lpContext
);
...
...
@@ -375,7 +375,7 @@ static HRESULT WINAPI IDirectPlaySPImpl_GetPlayerFlags
{
IDirectPlaySPImpl
*
This
=
(
IDirectPlaySPImpl
*
)
iface
;
FIXME
(
"(%p)->(0x%08
l
x,%p): stub
\n
"
,
FIXME
(
"(%p)->(0x%08x,%p): stub
\n
"
,
This
,
idPlayer
,
lpdwPlayerFlags
);
return
DP_OK
;
...
...
@@ -393,7 +393,7 @@ static HRESULT WINAPI IDirectPlaySPImpl_GetSPPlayerData
LPDP_SPPLAYERDATA
lpPlayerData
;
IDirectPlaySPImpl
*
This
=
(
IDirectPlaySPImpl
*
)
iface
;
TRACE
(
"(%p)->(0x%08
lx,%p,%p,0x%08l
x)
\n
"
,
TRACE
(
"(%p)->(0x%08
x,%p,%p,0x%08
x)
\n
"
,
This
,
idPlayer
,
lplpData
,
lpdwDataSize
,
dwFlags
);
hr
=
DP_GetSPPlayerData
(
This
->
sp
->
dplay
,
idPlayer
,
(
LPVOID
*
)
&
lpPlayerData
);
...
...
@@ -441,18 +441,18 @@ static HRESULT WINAPI IDirectPlaySPImpl_HandleMessage
IDirectPlaySPImpl
*
This
=
(
IDirectPlaySPImpl
*
)
iface
;
FIXME
(
"(%p)->(%p,0x%08
l
x,%p): mostly stub
\n
"
,
FIXME
(
"(%p)->(%p,0x%08x,%p): mostly stub
\n
"
,
This
,
lpMessageBody
,
dwMessageBodySize
,
lpMessageHeader
);
wCommandId
=
lpMsg
->
wCommandId
;
wVersion
=
lpMsg
->
wVersion
;
TRACE
(
"Incoming message has envelope of 0x%08
l
x, %u, %u
\n
"
,
TRACE
(
"Incoming message has envelope of 0x%08x, %u, %u
\n
"
,
lpMsg
->
dwMagic
,
wCommandId
,
wVersion
);
if
(
lpMsg
->
dwMagic
!=
DPMSGMAGIC_DPLAYMSG
)
{
ERR
(
"Unknown magic 0x%08
l
x!
\n
"
,
lpMsg
->
dwMagic
);
ERR
(
"Unknown magic 0x%08x!
\n
"
,
lpMsg
->
dwMagic
);
return
DPERR_GENERIC
;
}
...
...
@@ -755,7 +755,7 @@ static HRESULT WINAPI IDirectPlaySPImpl_SetSPPlayerData
IDirectPlaySPImpl
*
This
=
(
IDirectPlaySPImpl
*
)
iface
;
/* TRACE( "Called on process 0x%08lx\n", GetCurrentProcessId() ); */
TRACE
(
"(%p)->(0x%08
lx,%p,0x%08lx,0x%08l
x)
\n
"
,
TRACE
(
"(%p)->(0x%08
x,%p,0x%08x,0x%08
x)
\n
"
,
This
,
idPlayer
,
lpData
,
dwDataSize
,
dwFlags
);
hr
=
DP_GetSPPlayerData
(
This
->
sp
->
dplay
,
idPlayer
,
(
LPVOID
*
)
&
lpPlayerEntry
);
...
...
@@ -794,7 +794,7 @@ static HRESULT WINAPI IDirectPlaySPImpl_CreateCompoundAddress
{
IDirectPlaySPImpl
*
This
=
(
IDirectPlaySPImpl
*
)
iface
;
FIXME
(
"(%p)->(%p,0x%08
l
x,%p,%p): stub
\n
"
,
FIXME
(
"(%p)->(%p,0x%08x,%p,%p): stub
\n
"
,
This
,
lpElements
,
dwElementCount
,
lpAddress
,
lpdwAddressSize
);
return
DP_OK
;
...
...
@@ -811,7 +811,7 @@ static HRESULT WINAPI IDirectPlaySPImpl_GetSPData
IDirectPlaySPImpl
*
This
=
(
IDirectPlaySPImpl
*
)
iface
;
/* TRACE( "Called on process 0x%08lx\n", GetCurrentProcessId() ); */
TRACE
(
"(%p)->(%p,%p,0x%08
l
x)
\n
"
,
TRACE
(
"(%p)->(%p,%p,0x%08x)
\n
"
,
This
,
lplpData
,
lpdwDataSize
,
dwFlags
);
#if 0
...
...
@@ -827,7 +827,7 @@ static HRESULT WINAPI IDirectPlaySPImpl_GetSPData
*/
if
(
dwFlags
!=
DPSET_REMOTE
)
{
TRACE
(
"Undocumented dwFlags 0x%08
l
x used
\n
"
,
dwFlags
);
TRACE
(
"Undocumented dwFlags 0x%08x used
\n
"
,
dwFlags
);
}
#endif
...
...
@@ -870,7 +870,7 @@ static HRESULT WINAPI IDirectPlaySPImpl_SetSPData
IDirectPlaySPImpl
*
This
=
(
IDirectPlaySPImpl
*
)
iface
;
/* TRACE( "Called on process 0x%08lx\n", GetCurrentProcessId() ); */
TRACE
(
"(%p)->(%p,0x%08
lx,0x%08l
x)
\n
"
,
TRACE
(
"(%p)->(%p,0x%08
x,0x%08
x)
\n
"
,
This
,
lpData
,
dwDataSize
,
dwFlags
);
#if 0
...
...
@@ -886,7 +886,7 @@ static HRESULT WINAPI IDirectPlaySPImpl_SetSPData
*/
if
(
dwFlags
!=
DPSET_REMOTE
)
{
TRACE
(
"Undocumented dwFlags 0x%08
l
x used
\n
"
,
dwFlags
);
TRACE
(
"Undocumented dwFlags 0x%08x used
\n
"
,
dwFlags
);
}
#endif
...
...
@@ -918,7 +918,7 @@ static VOID WINAPI IDirectPlaySPImpl_SendComplete
{
IDirectPlaySPImpl
*
This
=
(
IDirectPlaySPImpl
*
)
iface
;
FIXME
(
"(%p)->(%p,0x%08
l
x): stub
\n
"
,
FIXME
(
"(%p)->(%p,0x%08x): stub
\n
"
,
This
,
unknownA
,
unknownB
);
}
...
...
dlls/dplayx/dplayx_global.c
View file @
699d4413
...
...
@@ -116,7 +116,7 @@ LPVOID DPLAYX_PrivHeapAlloc( DWORD flags, DWORD size )
if
(
size
>
(
dwBlockSize
-
sizeof
(
DWORD
))
)
{
FIXME
(
"Size exceeded. Request of 0x%08
l
x
\n
"
,
size
);
FIXME
(
"Size exceeded. Request of 0x%08x
\n
"
,
size
);
size
=
dwBlockSize
-
sizeof
(
DWORD
);
}
...
...
@@ -246,7 +246,7 @@ BOOL DPLAYX_ConstructData(void)
}
else
{
ERR
(
": semaphore error %
l
d
\n
"
,
GetLastError
()
);
ERR
(
": semaphore error %d
\n
"
,
GetLastError
()
);
return
FALSE
;
}
...
...
@@ -269,7 +269,7 @@ BOOL DPLAYX_ConstructData(void)
}
else
{
ERR
(
": unable to create shared memory (%
l
d)
\n
"
,
GetLastError
()
);
ERR
(
": unable to create shared memory (%d)
\n
"
,
GetLastError
()
);
DPLAYX_ReleaseSemaphore
();
return
FALSE
;
}
...
...
@@ -280,7 +280,7 @@ BOOL DPLAYX_ConstructData(void)
if
(
lpSharedStaticData
==
NULL
)
{
ERR
(
": unable to map static data into process memory space (%
l
d)
\n
"
,
ERR
(
": unable to map static data into process memory space (%d)
\n
"
,
GetLastError
()
);
DPLAYX_ReleaseSemaphore
();
return
FALSE
;
...
...
@@ -414,7 +414,7 @@ BOOL DPLAYX_IsAppIdLobbied( DWORD dwAppID, LPDPLAYX_LOBBYDATA* lplpDplData )
if
(
dwAppID
==
0
)
{
dwAppID
=
GetCurrentProcessId
();
TRACE
(
"Translated dwAppID == 0 into 0x%08
l
x
\n
"
,
dwAppID
);
TRACE
(
"Translated dwAppID == 0 into 0x%08x
\n
"
,
dwAppID
);
}
for
(
i
=
0
;
i
<
numSupportedLobbies
;
i
++
)
...
...
@@ -422,7 +422,7 @@ BOOL DPLAYX_IsAppIdLobbied( DWORD dwAppID, LPDPLAYX_LOBBYDATA* lplpDplData )
if
(
lobbyData
[
i
].
dwAppID
==
dwAppID
)
{
/* This process is lobbied */
TRACE
(
"Found 0x%08
l
x @ %u
\n
"
,
dwAppID
,
i
);
TRACE
(
"Found 0x%08x @ %u
\n
"
,
dwAppID
,
i
);
*
lplpDplData
=
&
lobbyData
[
i
];
return
TRUE
;
}
...
...
@@ -450,7 +450,7 @@ BOOL DPLAYX_CreateLobbyApplication( DWORD dwAppID )
if
(
lobbyData
[
i
].
dwAppID
==
0
)
{
/* This process is now lobbied */
TRACE
(
"Setting lobbyData[%u] for (0x%08
lx,0x%08l
x)
\n
"
,
TRACE
(
"Setting lobbyData[%u] for (0x%08
x,0x%08
x)
\n
"
,
i
,
dwAppID
,
GetCurrentProcessId
()
);
lobbyData
[
i
].
dwAppID
=
dwAppID
;
...
...
@@ -614,7 +614,7 @@ HRESULT DPLAYX_GetConnectionSettingsA
{
DPLAYX_ReleaseSemaphore
();
TRACE
(
"Application 0x%08
l
x is not lobbied
\n
"
,
dwAppID
);
TRACE
(
"Application 0x%08x is not lobbied
\n
"
,
dwAppID
);
return
DPERR_NOTLOBBIED
;
}
...
...
@@ -867,7 +867,7 @@ HRESULT DPLAYX_SetConnectionSettingsA
/* Store information */
if
(
lpConn
->
dwSize
!=
sizeof
(
DPLCONNECTION
)
)
{
ERR
(
": old/new DPLCONNECTION type? Size=%08
l
x
\n
"
,
lpConn
->
dwSize
);
ERR
(
": old/new DPLCONNECTION type? Size=%08x
\n
"
,
lpConn
->
dwSize
);
return
DPERR_INVALIDPARAMS
;
}
...
...
@@ -887,7 +887,7 @@ HRESULT DPLAYX_SetConnectionSettingsA
{
DPLAYX_ReleaseSemaphore
();
ERR
(
"DPSESSIONDESC passed in? Size=%
l
u
\n
"
,
lpConn
->
lpSessionDesc
->
dwSize
);
ERR
(
"DPSESSIONDESC passed in? Size=%u
\n
"
,
lpConn
->
lpSessionDesc
->
dwSize
);
return
DPERR_INVALIDPARAMS
;
}
...
...
@@ -929,7 +929,7 @@ HRESULT DPLAYX_SetConnectionSettingsW
/* Store information */
if
(
lpConn
->
dwSize
!=
sizeof
(
DPLCONNECTION
)
)
{
ERR
(
": old/new DPLCONNECTION type? Size=%
l
u
\n
"
,
lpConn
->
dwSize
);
ERR
(
": old/new DPLCONNECTION type? Size=%u
\n
"
,
lpConn
->
dwSize
);
return
DPERR_INVALIDPARAMS
;
}
...
...
@@ -1345,7 +1345,7 @@ LPCSTR DPLAYX_HresultToString(HRESULT hr)
default:
/* For errors not in the list, return HRESULT as a string
This part is not thread safe */
WARN
(
"Unknown error 0x%08
l
x
\n
"
,
hr
);
WARN
(
"Unknown error 0x%08x
\n
"
,
hr
);
wsprintfA
(
szTempStr
,
"0x%08lx"
,
hr
);
return
szTempStr
;
}
...
...
dlls/dplayx/dplayx_main.c
View file @
699d4413
...
...
@@ -73,7 +73,7 @@ DWORD gdwDPlaySPRefCount = 0; /* FIXME: Should it be initialized here? */
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"(%p,%
l
d,%p)
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
TRACE
(
"(%p,%d,%p)
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
...
...
@@ -105,7 +105,7 @@ HRESULT WINAPI DllCanUnloadNow(void)
* as well
*/
TRACE
(
": returning 0x%08
l
x
\n
"
,
hr
);
TRACE
(
": returning 0x%08x
\n
"
,
hr
);
return
hr
;
}
dlls/dplayx/dplayx_messages.c
View file @
699d4413
...
...
@@ -119,7 +119,7 @@ static DWORD CALLBACK DPL_MSG_ThreadMain( LPVOID lpContext )
dwWaitResult
=
WaitForSingleObject
(
lpThreadInfo
->
hStart
,
10000
/* 10 sec */
);
if
(
dwWaitResult
==
WAIT_TIMEOUT
)
{
FIXME
(
"Should signal app/wait creation failure (0x%08
l
x)
\n
"
,
dwWaitResult
);
FIXME
(
"Should signal app/wait creation failure (0x%08x)
\n
"
,
dwWaitResult
);
goto
end_of_thread
;
}
...
...
@@ -131,7 +131,7 @@ static DWORD CALLBACK DPL_MSG_ThreadMain( LPVOID lpContext )
dwWaitResult
=
WaitForSingleObject
(
lpThreadInfo
->
hSettingRead
,
INFINITE
);
if
(
dwWaitResult
==
WAIT_TIMEOUT
)
{
ERR
(
"App Read connection setting timeout fail (0x%08
l
x)
\n
"
,
dwWaitResult
);
ERR
(
"App Read connection setting timeout fail (0x%08x)
\n
"
,
dwWaitResult
);
}
/* Close this handle as it's not needed anymore */
...
...
@@ -225,7 +225,7 @@ HRESULT DP_MSG_SendRequestPlayerId( IDirectPlay2AImpl* This, DWORD dwFlags,
data
.
bSystemMessage
=
TRUE
;
/* Allow reply to be sent */
data
.
lpISP
=
This
->
dp2
->
spData
.
lpISP
;
TRACE
(
"Asking for player id w/ dwFlags 0x%08
l
x
\n
"
,
TRACE
(
"Asking for player id w/ dwFlags 0x%08x
\n
"
,
lpMsgBody
->
dwFlags
);
DP_MSG_ExpectReply
(
This
,
&
data
,
DPMSG_DEFAULT_WAIT_TIME
,
DPMSGCMD_NEWPLAYERIDREPLY
,
...
...
@@ -241,7 +241,7 @@ HRESULT DP_MSG_SendRequestPlayerId( IDirectPlay2AImpl* This, DWORD dwFlags,
*
lpdpidAllocatedId
=
lpcReply
->
dpidNewPlayerId
;
TRACE
(
"Received reply for id = 0x%08
l
x
\n
"
,
lpcReply
->
dpidNewPlayerId
);
TRACE
(
"Received reply for id = 0x%08x
\n
"
,
lpcReply
->
dpidNewPlayerId
);
/* FIXME: I think that the rest of the message has something to do
* with remote data for the player that perhaps I need to setup.
...
...
@@ -323,7 +323,7 @@ HRESULT DP_MSG_ForwardPlayerCreation( IDirectPlay2AImpl* This, DPID dpidServer )
lpMsgBody
->
unknown4
[
3
]
=
NS_GetNsMagic
(
This
->
dp2
->
lpNameServerData
)
-
0x02000000
;
TRACE
(
"Setting first magic to 0x%08
l
x
\n
"
,
lpMsgBody
->
unknown4
[
3
]
);
TRACE
(
"Setting first magic to 0x%08x
\n
"
,
lpMsgBody
->
unknown4
[
3
]
);
lpMsgBody
->
unknown4
[
4
]
=
0x0
;
lpMsgBody
->
unknown4
[
5
]
=
0x0
;
...
...
@@ -334,7 +334,7 @@ HRESULT DP_MSG_ForwardPlayerCreation( IDirectPlay2AImpl* This, DPID dpidServer )
#else
lpMsgBody
->
unknown4
[
7
]
=
NS_GetNsMagic
(
This
->
dp2
->
lpNameServerData
);
#endif
TRACE
(
"Setting second magic to 0x%08
l
x
\n
"
,
lpMsgBody
->
unknown4
[
7
]
);
TRACE
(
"Setting second magic to 0x%08x
\n
"
,
lpMsgBody
->
unknown4
[
7
]
);
lpMsgBody
->
unknown4
[
8
]
=
0x0
;
lpMsgBody
->
unknown4
[
9
]
=
0x0
;
...
...
@@ -356,7 +356,7 @@ HRESULT DP_MSG_ForwardPlayerCreation( IDirectPlay2AImpl* This, DPID dpidServer )
data
.
bSystemMessage
=
TRUE
;
/* Allow reply to be sent */
data
.
lpISP
=
This
->
dp2
->
spData
.
lpISP
;
TRACE
(
"Sending forward player request with 0x%08
l
x
\n
"
,
dpidServer
);
TRACE
(
"Sending forward player request with 0x%08x
\n
"
,
dpidServer
);
lpMsg
=
DP_MSG_ExpectReply
(
This
,
&
data
,
DPMSG_WAIT_60_SECS
,
...
...
@@ -393,7 +393,7 @@ LPVOID DP_MSG_ExpectReply( IDirectPlay2AImpl* This, LPDPSP_SENDDATA lpData,
hMsgReceipt
=
DP_MSG_BuildAndLinkReplyStruct
(
This
,
&
replyStructList
,
wReplyCommandId
);
TRACE
(
"Sending msg and expecting cmd %u in reply within %
l
u ticks
\n
"
,
TRACE
(
"Sending msg and expecting cmd %u in reply within %u ticks
\n
"
,
wReplyCommandId
,
dwWaitTime
);
hr
=
(
*
This
->
dp2
->
spData
.
lpCB
->
Send
)(
lpData
);
...
...
@@ -409,7 +409,7 @@ LPVOID DP_MSG_ExpectReply( IDirectPlay2AImpl* This, LPDPSP_SENDDATA lpData,
dwWaitReturn
=
WaitForSingleObject
(
hMsgReceipt
,
dwWaitTime
);
if
(
dwWaitReturn
!=
WAIT_OBJECT_0
)
{
ERR
(
"Wait failed 0x%08
l
x
\n
"
,
dwWaitReturn
);
ERR
(
"Wait failed 0x%08x
\n
"
,
dwWaitReturn
);
return
NULL
;
}
...
...
dlls/dplayx/dplobby.c
View file @
699d4413
...
...
@@ -419,7 +419,7 @@ static ULONG WINAPI DPL_AddRef
ulObjRefCount
=
InterlockedIncrement
(
&
This
->
unk
->
ulObjRef
);
ulInterfaceRefCount
=
InterlockedIncrement
(
&
This
->
ulInterfaceRef
);
TRACE
(
"ref count incremented to %
lu:%l
u for %p
\n
"
,
TRACE
(
"ref count incremented to %
u:%
u for %p
\n
"
,
ulInterfaceRefCount
,
ulObjRefCount
,
This
);
return
ulObjRefCount
;
...
...
@@ -439,7 +439,7 @@ static ULONG WINAPI DPL_Release
ulObjRefCount
=
InterlockedDecrement
(
&
This
->
unk
->
ulObjRef
);
ulInterfaceRefCount
=
InterlockedDecrement
(
&
This
->
ulInterfaceRef
);
TRACE
(
"ref count decremented to %
lu:%l
u for %p
\n
"
,
TRACE
(
"ref count decremented to %
u:%
u for %p
\n
"
,
ulInterfaceRefCount
,
ulObjRefCount
,
This
);
/* Deallocate if this is the last reference to the object */
...
...
@@ -480,7 +480,7 @@ static HRESULT WINAPI DPL_ConnectEx
DWORD
dwConnSize
=
0
;
LPDPLCONNECTION
lpConn
;
FIXME
(
"(%p)->(0x%08
l
x,%p,%p): semi stub
\n
"
,
This
,
dwFlags
,
lplpDP
,
pUnk
);
FIXME
(
"(%p)->(0x%08x,%p,%p): semi stub
\n
"
,
This
,
dwFlags
,
lplpDP
,
pUnk
);
if
(
pUnk
)
{
...
...
@@ -622,7 +622,7 @@ HRESULT DPL_CreateAddress(
const
DWORD
dwNumAddElements
=
2
;
/* Service Provide & address data type */
DPCOMPOUNDADDRESSELEMENT
addressElements
[
2
/* dwNumAddElements */
];
TRACE
(
"(%p)->(%p,%p,0x%08
l
x,%p,%p,%d)
\n
"
,
guidSP
,
guidDataType
,
lpData
,
dwDataSize
,
TRACE
(
"(%p)->(%p,%p,0x%08x,%p,%p,%d)
\n
"
,
guidSP
,
guidDataType
,
lpData
,
dwDataSize
,
lpAddress
,
lpdwAddressSize
,
bAnsiInterface
);
addressElements
[
0
].
guidDataType
=
DPAID_ServiceProvider
;
...
...
@@ -656,7 +656,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumAddress
{
IDirectPlayLobbyAImpl
*
This
=
(
IDirectPlayLobbyAImpl
*
)
iface
;
TRACE
(
"(%p)->(%p,%p,0x%08
l
x,%p)
\n
"
,
This
,
lpEnumAddressCallback
,
lpAddress
,
TRACE
(
"(%p)->(%p,%p,0x%08x,%p)
\n
"
,
This
,
lpEnumAddressCallback
,
lpAddress
,
dwAddressSize
,
lpContext
);
return
DPL_EnumAddress
(
lpEnumAddressCallback
,
lpAddress
,
dwAddressSize
,
lpContext
);
...
...
@@ -671,7 +671,7 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_EnumAddress
{
IDirectPlayLobbyWImpl
*
This
=
(
IDirectPlayLobbyWImpl
*
)
iface
;
TRACE
(
"(%p)->(%p,%p,0x%08
l
x,%p)
\n
"
,
This
,
lpEnumAddressCallback
,
lpAddress
,
TRACE
(
"(%p)->(%p,%p,0x%08x,%p)
\n
"
,
This
,
lpEnumAddressCallback
,
lpAddress
,
dwAddressSize
,
lpContext
);
return
DPL_EnumAddress
(
lpEnumAddressCallback
,
lpAddress
,
dwAddressSize
,
lpContext
);
...
...
@@ -727,7 +727,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumAddressTypes
char
subKeyName
[
51
];
FILETIME
filetime
;
TRACE
(
" (%p)->(%p,%p,%p,0x%08
l
x)
\n
"
,
This
,
lpEnumAddressTypeCallback
,
guidSP
,
lpContext
,
dwFlags
);
TRACE
(
" (%p)->(%p,%p,%p,0x%08x)
\n
"
,
This
,
lpEnumAddressTypeCallback
,
guidSP
,
lpContext
,
dwFlags
);
if
(
dwFlags
!=
0
)
{
...
...
@@ -863,7 +863,7 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_EnumLocalApplications
{
IDirectPlayLobbyWImpl
*
This
=
(
IDirectPlayLobbyWImpl
*
)
iface
;
FIXME
(
"(%p)->(%p,%p,0x%08
l
x):stub
\n
"
,
This
,
lpEnumLocalAppCallback
,
lpContext
,
dwFlags
);
FIXME
(
"(%p)->(%p,%p,0x%08x):stub
\n
"
,
This
,
lpEnumLocalAppCallback
,
lpContext
,
dwFlags
);
return
DPERR_OUTOFMEMORY
;
}
...
...
@@ -883,7 +883,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumLocalApplications
char
subKeyName
[
51
];
FILETIME
filetime
;
TRACE
(
"(%p)->(%p,%p,0x%08
l
x)
\n
"
,
This
,
lpEnumLocalAppCallback
,
lpContext
,
dwFlags
);
TRACE
(
"(%p)->(%p,%p,0x%08x)
\n
"
,
This
,
lpEnumLocalAppCallback
,
lpContext
,
dwFlags
);
if
(
dwFlags
!=
0
)
{
...
...
@@ -979,7 +979,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_GetConnectionSettings
IDirectPlayLobbyAImpl
*
This
=
(
IDirectPlayLobbyAImpl
*
)
iface
;
HRESULT
hr
;
TRACE
(
"(%p)->(0x%08
l
x,%p,%p)
\n
"
,
This
,
dwAppID
,
lpData
,
lpdwDataSize
);
TRACE
(
"(%p)->(0x%08x,%p,%p)
\n
"
,
This
,
dwAppID
,
lpData
,
lpdwDataSize
);
EnterCriticalSection
(
&
This
->
unk
->
DPL_lock
);
...
...
@@ -1002,7 +1002,7 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_GetConnectionSettings
IDirectPlayLobbyWImpl
*
This
=
(
IDirectPlayLobbyWImpl
*
)
iface
;
HRESULT
hr
;
TRACE
(
"(%p)->(0x%08
l
x,%p,%p)
\n
"
,
This
,
dwAppID
,
lpData
,
lpdwDataSize
);
TRACE
(
"(%p)->(0x%08x,%p,%p)
\n
"
,
This
,
dwAppID
,
lpData
,
lpdwDataSize
);
EnterCriticalSection
(
&
This
->
unk
->
DPL_lock
);
...
...
@@ -1031,7 +1031,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_ReceiveLobbyMessage
LPDWORD
lpdwDataSize
)
{
IDirectPlayLobbyAImpl
*
This
=
(
IDirectPlayLobbyAImpl
*
)
iface
;
FIXME
(
":stub %p %08
lx %08l
x %p %p %p
\n
"
,
This
,
dwFlags
,
dwAppID
,
lpdwMessageFlags
,
lpData
,
FIXME
(
":stub %p %08
x %08
x %p %p %p
\n
"
,
This
,
dwFlags
,
dwAppID
,
lpdwMessageFlags
,
lpData
,
lpdwDataSize
);
return
DPERR_OUTOFMEMORY
;
}
...
...
@@ -1045,7 +1045,7 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_ReceiveLobbyMessage
LPDWORD
lpdwDataSize
)
{
IDirectPlayLobbyWImpl
*
This
=
(
IDirectPlayLobbyWImpl
*
)
iface
;
FIXME
(
":stub %p %08
lx %08l
x %p %p %p
\n
"
,
This
,
dwFlags
,
dwAppID
,
lpdwMessageFlags
,
lpData
,
FIXME
(
":stub %p %08
x %08
x %p %p %p
\n
"
,
This
,
dwFlags
,
dwAppID
,
lpdwMessageFlags
,
lpData
,
lpdwDataSize
);
return
DPERR_OUTOFMEMORY
;
}
...
...
@@ -1212,7 +1212,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_RunApplication
DWORD
dwSuspendCount
;
HANDLE
hStart
,
hDeath
,
hSettingRead
;
TRACE
(
"(%p)->(0x%08
l
x,%p,%p,%p)
\n
"
,
TRACE
(
"(%p)->(0x%08x,%p,%p,%p)
\n
"
,
This
,
dwFlags
,
lpdwAppID
,
lpConn
,
hReceiveEvent
);
if
(
dwFlags
!=
0
)
...
...
@@ -1287,7 +1287,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_RunApplication
/* Reserve this global application id! */
if
(
!
DPLAYX_CreateLobbyApplication
(
newProcessInfo
.
dwProcessId
)
)
{
ERR
(
"Unable to create global application data for 0x%08
l
x
\n
"
,
ERR
(
"Unable to create global application data for 0x%08x
\n
"
,
newProcessInfo
.
dwProcessId
);
}
...
...
@@ -1319,7 +1319,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_RunApplication
/* Unsuspend the process - should return the prev suspension count */
if
(
(
dwSuspendCount
=
ResumeThread
(
newProcessInfo
.
hThread
)
)
!=
1
)
{
ERR
(
"ResumeThread failed with 0x%08
l
x
\n
"
,
dwSuspendCount
);
ERR
(
"ResumeThread failed with 0x%08x
\n
"
,
dwSuspendCount
);
}
return
DP_OK
;
...
...
@@ -1333,7 +1333,7 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_RunApplication
HANDLE
hReceiveEvent
)
{
IDirectPlayLobbyWImpl
*
This
=
(
IDirectPlayLobbyWImpl
*
)
iface
;
FIXME
(
"(%p)->(0x%08
l
x,%p,%p,%p):stub
\n
"
,
This
,
dwFlags
,
lpdwAppID
,
lpConn
,
(
void
*
)
hReceiveEvent
);
FIXME
(
"(%p)->(0x%08x,%p,%p,%p):stub
\n
"
,
This
,
dwFlags
,
lpdwAppID
,
lpConn
,
(
void
*
)
hReceiveEvent
);
return
DPERR_OUTOFMEMORY
;
}
...
...
@@ -1380,7 +1380,7 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_SetConnectionSettings
IDirectPlayLobbyWImpl
*
This
=
(
IDirectPlayLobbyWImpl
*
)
iface
;
HRESULT
hr
;
TRACE
(
"(%p)->(0x%08
lx,0x%08l
x,%p)
\n
"
,
This
,
dwFlags
,
dwAppID
,
lpConn
);
TRACE
(
"(%p)->(0x%08
x,0x%08
x,%p)
\n
"
,
This
,
dwFlags
,
dwAppID
,
lpConn
);
EnterCriticalSection
(
&
This
->
unk
->
DPL_lock
);
...
...
@@ -1414,7 +1414,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_SetConnectionSettings
IDirectPlayLobbyAImpl
*
This
=
(
IDirectPlayLobbyAImpl
*
)
iface
;
HRESULT
hr
;
TRACE
(
"(%p)->(0x%08
lx,0x%08l
x,%p)
\n
"
,
This
,
dwFlags
,
dwAppID
,
lpConn
);
TRACE
(
"(%p)->(0x%08
x,0x%08
x,%p)
\n
"
,
This
,
dwFlags
,
dwAppID
,
lpConn
);
EnterCriticalSection
(
&
This
->
unk
->
DPL_lock
);
...
...
@@ -1494,7 +1494,7 @@ HRESULT DPL_CreateCompoundAddress
DWORD
dwElements
;
LPCDPCOMPOUNDADDRESSELEMENT
lpOrigElements
=
lpElements
;
TRACE
(
"(%p,0x%08
l
x,%p,%p)
\n
"
,
lpElements
,
dwElementCount
,
lpAddress
,
lpdwAddressSize
);
TRACE
(
"(%p,0x%08x,%p,%p)
\n
"
,
lpElements
,
dwElementCount
,
lpAddress
,
lpdwAddressSize
);
/* Parameter check */
if
(
(
lpElements
==
NULL
)
||
...
...
@@ -1714,7 +1714,7 @@ static HRESULT WINAPI IDirectPlayLobby3WImpl_WaitForConnectionSettings
HRESULT
hr
=
DP_OK
;
BOOL
bStartWait
=
(
dwFlags
&
DPLWAIT_CANCEL
)
?
FALSE
:
TRUE
;
TRACE
(
"(%p)->(0x%08
l
x)
\n
"
,
iface
,
dwFlags
);
TRACE
(
"(%p)->(0x%08x)
\n
"
,
iface
,
dwFlags
);
if
(
DPLAYX_WaitForConnectionSettings
(
bStartWait
)
)
{
...
...
@@ -1731,7 +1731,7 @@ static HRESULT WINAPI IDirectPlayLobby3AImpl_WaitForConnectionSettings
HRESULT
hr
=
DP_OK
;
BOOL
bStartWait
=
(
dwFlags
&
DPLWAIT_CANCEL
)
?
FALSE
:
TRUE
;
TRACE
(
"(%p)->(0x%08
l
x)
\n
"
,
iface
,
dwFlags
);
TRACE
(
"(%p)->(0x%08x)
\n
"
,
iface
,
dwFlags
);
if
(
DPLAYX_WaitForConnectionSettings
(
bStartWait
)
)
{
...
...
@@ -1956,7 +1956,7 @@ HRESULT WINAPI DirectPlayLobbyCreateA( LPGUID lpGUIDDSP,
LPVOID
lpData
,
DWORD
dwDataSize
)
{
TRACE
(
"lpGUIDDSP=%p lplpDPL=%p lpUnk=%p lpData=%p dwDataSize=%08
l
x
\n
"
,
TRACE
(
"lpGUIDDSP=%p lplpDPL=%p lpUnk=%p lpData=%p dwDataSize=%08x
\n
"
,
lpGUIDDSP
,
lplpDPL
,
lpUnk
,
lpData
,
dwDataSize
);
/* Parameter Check: lpGUIDSP, lpUnk & lpData must be NULL. dwDataSize must
...
...
@@ -1988,7 +1988,7 @@ HRESULT WINAPI DirectPlayLobbyCreateW( LPGUID lpGUIDDSP,
LPVOID
lpData
,
DWORD
dwDataSize
)
{
TRACE
(
"lpGUIDDSP=%p lplpDPL=%p lpUnk=%p lpData=%p dwDataSize=%08
l
x
\n
"
,
TRACE
(
"lpGUIDDSP=%p lplpDPL=%p lpUnk=%p lpData=%p dwDataSize=%08x
\n
"
,
lpGUIDDSP
,
lplpDPL
,
lpUnk
,
lpData
,
dwDataSize
);
/* Parameter Check: lpGUIDSP, lpUnk & lpData must be NULL. dwDataSize must
...
...
dlls/dplayx/lobbysp.c
View file @
699d4413
...
...
@@ -224,7 +224,7 @@ ULONG WINAPI DPLSP_AddRef
ulObjRefCount
=
InterlockedIncrement
(
&
This
->
unk
->
ulObjRef
);
ulInterfaceRefCount
=
InterlockedIncrement
(
&
This
->
ulInterfaceRef
);
TRACE
(
"ref count incremented to %
lu:%l
u for %p
\n
"
,
TRACE
(
"ref count incremented to %
u:%
u for %p
\n
"
,
ulInterfaceRefCount
,
ulObjRefCount
,
This
);
return
ulObjRefCount
;
...
...
@@ -240,7 +240,7 @@ ULONG WINAPI DPLSP_Release
ulObjRefCount
=
InterlockedDecrement
(
&
This
->
unk
->
ulObjRef
);
ulInterfaceRefCount
=
InterlockedDecrement
(
&
This
->
ulInterfaceRef
);
TRACE
(
"ref count decremented to %
lu:%l
u for %p
\n
"
,
TRACE
(
"ref count decremented to %
u:%
u for %p
\n
"
,
ulInterfaceRefCount
,
ulObjRefCount
,
This
);
/* Deallocate if this is the last reference to the object */
...
...
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