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
ef1be6b4
Commit
ef1be6b4
authored
Oct 08, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpnet: Win64 printf format warning fixes.
parent
a77310fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
30 deletions
+29
-30
Makefile.in
dlls/dpnet/Makefile.in
+0
-1
address.c
dlls/dpnet/address.c
+7
-7
client.c
dlls/dpnet/client.c
+21
-21
dpnet_main.c
dlls/dpnet/dpnet_main.c
+1
-1
No files found.
dlls/dpnet/Makefile.in
View file @
ef1be6b4
...
...
@@ -6,7 +6,6 @@ MODULE = dpnet.dll
IMPORTLIB
=
libdpnet.
$(IMPLIBEXT)
IMPORTS
=
ole32 user32 advapi32 kernel32
EXTRALIBS
=
-ldxguid
-luuid
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
\
address.c
\
...
...
dlls/dpnet/address.c
View file @
ef1be6b4
...
...
@@ -57,7 +57,7 @@ static ULONG WINAPI IDirectPlay8AddressImpl_AddRef(PDIRECTPLAY8ADDRESS iface) {
IDirectPlay8AddressImpl
*
This
=
(
IDirectPlay8AddressImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
return
refCount
;
}
...
...
@@ -66,7 +66,7 @@ static ULONG WINAPI IDirectPlay8AddressImpl_Release(PDIRECTPLAY8ADDRESS iface) {
IDirectPlay8AddressImpl
*
This
=
(
IDirectPlay8AddressImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -172,23 +172,23 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_GetComponentByIndex(PDIRECTPLAY8AD
static
HRESULT
WINAPI
IDirectPlay8AddressImpl_AddComponent
(
PDIRECTPLAY8ADDRESS
iface
,
CONST
WCHAR
*
CONST
pwszName
,
CONST
void
*
CONST
lpvData
,
CONST
DWORD
dwDataSize
,
CONST
DWORD
dwDataType
)
{
IDirectPlay8AddressImpl
*
This
=
(
IDirectPlay8AddressImpl
*
)
iface
;
TRACE
(
"(%p, %s, %p, %
lu, %l
x): stub
\n
"
,
This
,
debugstr_w
(
pwszName
),
lpvData
,
dwDataSize
,
dwDataType
);
TRACE
(
"(%p, %s, %p, %
u, %
x): stub
\n
"
,
This
,
debugstr_w
(
pwszName
),
lpvData
,
dwDataSize
,
dwDataType
);
if
(
NULL
==
lpvData
)
return
DPNERR_INVALIDPOINTER
;
switch
(
dwDataType
)
{
case
DPNA_DATATYPE_DWORD
:
if
(
sizeof
(
DWORD
)
!=
dwDataSize
)
return
DPNERR_INVALIDPARAM
;
TRACE
(
"(%p, %
lu): DWORD Type -> %l
u
\n
"
,
lpvData
,
dwDataSize
,
*
(
const
DWORD
*
)
lpvData
);
TRACE
(
"(%p, %
u): DWORD Type -> %
u
\n
"
,
lpvData
,
dwDataSize
,
*
(
const
DWORD
*
)
lpvData
);
break
;
case
DPNA_DATATYPE_GUID
:
if
(
sizeof
(
GUID
)
!=
dwDataSize
)
return
DPNERR_INVALIDPARAM
;
TRACE
(
"(%p, %
l
u): GUID Type -> %s
\n
"
,
lpvData
,
dwDataSize
,
debugstr_guid
((
const
GUID
*
)
lpvData
));
TRACE
(
"(%p, %u): GUID Type -> %s
\n
"
,
lpvData
,
dwDataSize
,
debugstr_guid
((
const
GUID
*
)
lpvData
));
break
;
case
DPNA_DATATYPE_STRING
:
TRACE
(
"(%p, %
l
u): STRING Type -> %s
\n
"
,
lpvData
,
dwDataSize
,
(
const
CHAR
*
)
lpvData
);
TRACE
(
"(%p, %u): STRING Type -> %s
\n
"
,
lpvData
,
dwDataSize
,
(
const
CHAR
*
)
lpvData
);
break
;
case
DPNA_DATATYPE_BINARY
:
TRACE
(
"(%p, %
l
u): BINARY Type
\n
"
,
lpvData
,
dwDataSize
);
TRACE
(
"(%p, %u): BINARY Type
\n
"
,
lpvData
,
dwDataSize
);
break
;
}
...
...
dlls/dpnet/client.c
View file @
ef1be6b4
...
...
@@ -57,7 +57,7 @@ static ULONG WINAPI IDirectPlay8ClientImpl_AddRef(PDIRECTPLAY8CLIENT iface) {
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
return
refCount
;
}
...
...
@@ -66,7 +66,7 @@ static ULONG WINAPI IDirectPlay8ClientImpl_Release(PDIRECTPLAY8CLIENT iface) {
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -78,7 +78,7 @@ static ULONG WINAPI IDirectPlay8ClientImpl_Release(PDIRECTPLAY8CLIENT iface) {
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_Initialize
(
PDIRECTPLAY8CLIENT
iface
,
PVOID
CONST
pvUserContext
,
CONST
PFNDPNMESSAGEHANDLER
pfn
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%p,%p,%
l
x): Stub
\n
"
,
This
,
pvUserContext
,
pfn
,
dwFlags
);
FIXME
(
"(%p):(%p,%p,%x): Stub
\n
"
,
This
,
pvUserContext
,
pfn
,
dwFlags
);
return
DPN_OK
;
}
...
...
@@ -90,7 +90,7 @@ static HRESULT WINAPI IDirectPlay8ClientImpl_EnumServiceProviders(PDIRECTPLAY8CL
PDWORD
CONST
pcReturned
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
...
...
@@ -106,13 +106,13 @@ static HRESULT WINAPI IDirectPlay8ClientImpl_EnumHosts(PDIRECTPLAY8CLIENT iface,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
/*FIXME("(%p):(%p,%p,%p,%p,%lu,%lu,%lu,%lu): Stub\n", This, pApplicationDesc, pAddrHost, pDeviceInfo, pUserEnumData, dwUserEnumDataSize, dwEnumCount, dwRetryInterval, dwTimeOut);*/
FIXME
(
"(%p):(%p,%p,%
l
x): Stub
\n
"
,
This
,
pvUserContext
,
pAsyncHandle
,
dwFlags
);
FIXME
(
"(%p):(%p,%p,%x): Stub
\n
"
,
This
,
pvUserContext
,
pAsyncHandle
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_CancelAsyncOperation
(
PDIRECTPLAY8CLIENT
iface
,
CONST
DPNHANDLE
hAsyncHandle
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
lu,%l
x): Stub
\n
"
,
This
,
hAsyncHandle
,
dwFlags
);
FIXME
(
"(%p):(%
u,%
x): Stub
\n
"
,
This
,
hAsyncHandle
,
dwFlags
);
return
DPN_OK
;
}
...
...
@@ -128,7 +128,7 @@ static HRESULT WINAPI IDirectPlay8ClientImpl_Connect(PDIRECTPLAY8CLIENT iface,
DPNHANDLE
*
CONST
phAsyncHandle
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%p,%p,%
l
x): Stub
\n
"
,
This
,
pvAsyncContext
,
phAsyncHandle
,
dwFlags
);
FIXME
(
"(%p):(%p,%p,%x): Stub
\n
"
,
This
,
pvAsyncContext
,
phAsyncHandle
,
dwFlags
);
return
DPN_OK
;
}
...
...
@@ -140,19 +140,19 @@ static HRESULT WINAPI IDirectPlay8ClientImpl_Send(PDIRECTPLAY8CLIENT iface,
DPNHANDLE
*
CONST
phAsyncHandle
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%p,%p,%
l
x): Stub
\n
"
,
This
,
pvAsyncContext
,
phAsyncHandle
,
dwFlags
);
FIXME
(
"(%p):(%p,%p,%x): Stub
\n
"
,
This
,
pvAsyncContext
,
phAsyncHandle
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_GetSendQueueInfo
(
PDIRECTPLAY8CLIENT
iface
,
DWORD
*
CONST
pdwNumMsgs
,
DWORD
*
CONST
pdwNumBytes
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_GetApplicationDesc
(
PDIRECTPLAY8CLIENT
iface
,
DPN_APPLICATION_DESC
*
CONST
pAppDescBuffer
,
DWORD
*
CONST
pcbDataSize
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
...
...
@@ -162,67 +162,67 @@ static HRESULT WINAPI IDirectPlay8ClientImpl_SetClientInfo(PDIRECTPLAY8CLIENT if
DPNHANDLE
*
CONST
phAsyncHandle
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%p,%p,%
l
x): Stub
\n
"
,
This
,
pvAsyncContext
,
phAsyncHandle
,
dwFlags
);
FIXME
(
"(%p):(%p,%p,%x): Stub
\n
"
,
This
,
pvAsyncContext
,
phAsyncHandle
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_GetServerInfo
(
PDIRECTPLAY8CLIENT
iface
,
DPN_PLAYER_INFO
*
CONST
pdpnPlayerInfo
,
DWORD
*
CONST
pdwSize
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_GetServerAddress
(
PDIRECTPLAY8CLIENT
iface
,
IDirectPlay8Address
**
CONST
pAddress
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_Close
(
PDIRECTPLAY8CLIENT
iface
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_ReturnBuffer
(
PDIRECTPLAY8CLIENT
iface
,
CONST
DPNHANDLE
hBufferHandle
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_GetCaps
(
PDIRECTPLAY8CLIENT
iface
,
DPN_CAPS
*
CONST
pdpCaps
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_SetCaps
(
PDIRECTPLAY8CLIENT
iface
,
CONST
DPN_CAPS
*
CONST
pdpCaps
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_SetSPCaps
(
PDIRECTPLAY8CLIENT
iface
,
CONST
GUID
*
CONST
pguidSP
,
CONST
DPN_SP_CAPS
*
CONST
pdpspCaps
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_GetSPCaps
(
PDIRECTPLAY8CLIENT
iface
,
CONST
GUID
*
CONST
pguidSP
,
DPN_SP_CAPS
*
CONST
pdpspCaps
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_GetConnectionInfo
(
PDIRECTPLAY8CLIENT
iface
,
DPN_CONNECTION_INFO
*
CONST
pdpConnectionInfo
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_RegisterLobby
(
PDIRECTPLAY8CLIENT
iface
,
CONST
DPNHANDLE
dpnHandle
,
struct
IDirectPlay8LobbiedApplication
*
CONST
pIDP8LobbiedApplication
,
CONST
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
(
IDirectPlay8ClientImpl
*
)
iface
;
FIXME
(
"(%p):(%
l
x): Stub
\n
"
,
This
,
dwFlags
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
}
...
...
dlls/dpnet/dpnet_main.c
View file @
ef1be6b4
...
...
@@ -43,7 +43,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dpnet);
/* At process attach */
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"%p,%
l
x,%p
\n
"
,
hInstDLL
,
fdwReason
,
lpvReserved
);
TRACE
(
"%p,%x,%p
\n
"
,
hInstDLL
,
fdwReason
,
lpvReserved
);
if
(
fdwReason
==
DLL_PROCESS_ATTACH
)
{
DisableThreadLibraryCalls
(
hInstDLL
);
}
...
...
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