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
5f30ee06
Commit
5f30ee06
authored
Jan 21, 2002
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment out/ifdef out unused code and variables.
parent
4589a074
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
17 deletions
+33
-17
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+2
-0
audren.c
dlls/quartz/audren.c
+9
-1
sample.c
dlls/quartz/sample.c
+3
-1
socket.c
dlls/wsock32/socket.c
+17
-15
pe.c
tools/winedump/pe.c
+2
-0
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
5f30ee06
...
...
@@ -815,8 +815,10 @@ int is_OpenGL_dx3(REFCLSID rguid, IDirectDrawSurfaceImpl* surface, IDirect3DDevi
{
if
(
!
memcmp
(
&
IID_D3DDEVICE_OpenGL
,
rguid
,
sizeof
(
IID_D3DDEVICE_OpenGL
)))
{
mesa_d3dd_private
*
odev
;
#if 0 /* See below */
int attributeList[]={ GLX_RGBA, GLX_DEPTH_SIZE, 16, GLX_DOUBLEBUFFER, None };
XVisualInfo *xvis;
#endif
*
device
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DDeviceImpl
));
(
*
device
)
->
private
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
mesa_d3dd_private
));
...
...
dlls/quartz/audren.c
View file @
5f30ee06
...
...
@@ -195,6 +195,9 @@ err:
return
hr
;
}
#if 0
/* FIXME: Not used for now */
static HRESULT CAudioRendererImpl_waveOutPause( CAudioRendererImpl* This )
{
if ( !This->m_fWaveOutInit )
...
...
@@ -212,6 +215,7 @@ static HRESULT CAudioRendererImpl_waveOutRun( CAudioRendererImpl* This )
return QUARTZ_HRESULT_From_MMRESULT( waveOutRestart(
This->m_hWaveOut ) );
}
#endif
static
WAVEHDR
*
CAudioRendererImpl_waveOutGetBuffer
(
...
...
@@ -296,6 +300,9 @@ HRESULT CAudioRendererImpl_waveOutFlush(
return
S_OK
;
}
#if 0
/* FIXME: Not used for now */
static
HRESULT CAudioRendererImpl_waveOutGetVolume(
CAudioRendererImpl* This,
...
...
@@ -337,6 +344,7 @@ HRESULT CAudioRendererImpl_waveOutSetVolume(
This->m_hWaveOut, dwVol );
return QUARTZ_HRESULT_From_MMRESULT( mr );
}
#endif
/***************************************************************************
*
...
...
@@ -348,7 +356,7 @@ HRESULT CAudioRendererImpl_waveOutSetVolume(
static
HRESULT
CAudioRendererImpl_OnActive
(
CBaseFilterImpl
*
pImpl
)
{
CAudioRendererImpl_THIS
(
pImpl
,
basefilter
);
HRESULT
hr
;
/* HRESULT hr; */
FIXME
(
"(%p)
\n
"
,
This
);
...
...
dlls/quartz/sample.c
View file @
5f30ee06
...
...
@@ -32,13 +32,13 @@ HRESULT QUARTZ_IMediaSample_GetProperties(
IMediaSample
*
pSample
,
AM_SAMPLE2_PROPERTIES
*
pProp
)
{
#if 0 /* not yet */
HRESULT hr;
AM_SAMPLE2_PROPERTIES prop;
IMediaSample2* pSample2 = NULL;
ZeroMemory( &prop, sizeof(AM_SAMPLE2_PROPERTIES) );
#if 0 /* not yet */
hr = IMediaSample_QueryInterface( pSample, &IID_IMediaSample2, (void**)&pSample2 );
if ( hr == S_OK )
{
...
...
@@ -82,7 +82,9 @@ HRESULT QUARTZ_IMediaSample_SetProperties(
{
HRESULT
hr
;
AM_SAMPLE2_PROPERTIES
prop
;
#if 0 /* not yet */
IMediaSample2* pSample2 = NULL;
#endif
memcpy
(
&
prop
,
pProp
,
sizeof
(
AM_SAMPLE2_PROPERTIES
)
);
prop
.
cbData
=
sizeof
(
AM_SAMPLE2_PROPERTIES
);
...
...
dlls/wsock32/socket.c
View file @
5f30ee06
...
...
@@ -200,31 +200,33 @@ DWORD WINAPI WsControl(DWORD protocoll,
*/
IFEntry
*
IntInfo
=
(
IFEntry
*
)
pResponseInfo
;
char
ifName
[
512
];
#if defined(SIOCGIFHWADDR) || defined(SIOCGENADDR)
struct
ifreq
ifInfo
;
#endif
SOCKET
sock
;
if
(
!
WSCNTL_GetInterfaceName
(
pcommand
->
toi_entity
.
tei_instance
,
ifName
))
{
ERR
(
"Unable to parse /proc filesystem!
\n
"
);
return
(
-
1
);
}
/* Get a socket so that we can use ioctl */
if
(
(
sock
=
socket
(
AF_INET
,
SOCK_DGRAM
,
0
))
==
INVALID_SOCKET
)
{
ERR
(
"Error creating socket!
\n
"
);
return
(
-
1
);
}
/* 0 out return structure first */
memset
(
IntInfo
,
0
,
sizeof
(
IFEntry
));
/* Interface ID */
IntInfo
->
if_index
=
pcommand
->
toi_entity
.
tei_instance
;
/* MAC Address - Let's try to do this in a cross-platform way... */
#if defined(SIOCGIFHWADDR)
/* Linux */
#if defined(SIOCGIFHWADDR)
/* Linux */
strcpy
(
ifInfo
.
ifr_name
,
ifName
);
if
(
ioctlsocket
(
sock
,
SIOCGIFHWADDR
,
(
ULONG
*
)
&
ifInfo
)
<
0
)
{
...
...
@@ -238,7 +240,7 @@ DWORD WINAPI WsControl(DWORD protocoll,
memcpy
(
IntInfo
->
if_physaddr
,
ifInfo
.
ifr_hwaddr
.
sa_data
,
6
);
IntInfo
->
if_physaddrlen
=
6
;
}
#elif defined(SIOCGENADDR)
/* Solaris */
#elif defined(SIOCGENADDR)
/* Solaris */
if
(
ioctlsocket
(
sock
,
SIOCGENADDR
,
(
ULONG
*
)
&
ifInfo
)
<
0
)
{
ERR
(
"Error obtaining MAC Address!
\n
"
);
...
...
@@ -248,19 +250,19 @@ DWORD WINAPI WsControl(DWORD protocoll,
else
{
/* FIXME: Is it correct to assume size of 6? */
memcpy
(
IntInfo
->
if_physaddr
,
ifInfo
.
ifr_enaddr
,
6
);
memcpy
(
IntInfo
->
if_physaddr
,
ifInfo
.
ifr_enaddr
,
6
);
IntInfo
->
if_physaddrlen
=
6
;
}
#else
#else
memset
(
IntInfo
->
if_physaddr
,
0
,
6
);
ERR
(
"Unable to determine MAC Address on your platform!
\n
"
);
#endif
#endif
/* Interface name and length */
strcpy
(
IntInfo
->
if_descr
,
ifName
);
IntInfo
->
if_descrlen
=
strlen
(
IntInfo
->
if_descr
);
/* Obtain bytes transmitted/received for interface */
if
(
(
WSCNTL_GetTransRecvStat
(
pcommand
->
toi_entity
.
tei_instance
,
&
IntInfo
->
if_inoctets
,
&
IntInfo
->
if_outoctets
))
<
0
)
...
...
@@ -269,11 +271,11 @@ DWORD WINAPI WsControl(DWORD protocoll,
closesocket
(
sock
);
return
(
-
1
);
}
/* FIXME: How should the below be properly calculated? ******************/
IntInfo
->
if_type
=
0x6
;
/* Ethernet (?) */
IntInfo
->
if_speed
=
1000000
;
/* Speed of interface (bits per second?) */
IntInfo
->
if_speed
=
1000000
;
/* Speed of interface (bits per second?) */
/************************************************************************/
closesocket
(
sock
);
...
...
tools/winedump/pe.c
View file @
5f30ee06
...
...
@@ -875,6 +875,7 @@ static int symbol_cmp(const void *left, const void *right)
*
* Free resources used by DLL
*/
/* FIXME: Not used yet
static void dll_close (void)
{
dll_symbol* ds;
...
...
@@ -887,6 +888,7 @@ static void dll_close (void)
free (dll_symbols);
dll_symbols = NULL;
}
*/
static
void
do_grab_sym
(
void
)
{
...
...
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