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
ac6f562b
Commit
ac6f562b
authored
Jun 20, 2005
by
Stefan Huehner
Committed by
Alexandre Julliard
Jun 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix more -Wstrict-prototypes warnings.
parent
75d88907
Hide whitespace changes
Inline
Side-by-side
Showing
57 changed files
with
154 additions
and
154 deletions
+154
-154
crypt.c
dlls/advapi32/tests/crypt.c
+3
-3
crypt_lmhash.c
dlls/advapi32/tests/crypt_lmhash.c
+1
-1
registry.c
dlls/advapi32/tests/registry.c
+8
-8
advpack.c
dlls/advpack/tests/advpack.c
+2
-2
listview.c
dlls/comctl32/listview.c
+1
-1
imagelist.c
dlls/comctl32/tests/imagelist.c
+1
-1
d3d.c
dlls/ddraw/tests/d3d.c
+3
-3
ddrawmodes.c
dlls/ddraw/tests/ddrawmodes.c
+8
-8
dsurface.c
dlls/ddraw/tests/dsurface.c
+3
-3
joystick.c
dlls/dinput/tests/joystick.c
+1
-1
keyboard.c
dlls/dinput/tests/keyboard.c
+1
-1
dmband_private.h
dlls/dmband/dmband_private.h
+2
-2
dmcompos_private.h
dlls/dmcompos/dmcompos_private.h
+2
-2
dmime_private.h
dlls/dmime/dmime_private.h
+2
-2
dmscript_private.h
dlls/dmscript/dmscript_private.h
+2
-2
dmstyle_private.h
dlls/dmstyle/dmstyle_private.h
+2
-2
dmsynth_private.h
dlls/dmsynth/dmsynth_private.h
+2
-2
dmusic_private.h
dlls/dmusic/dmusic_private.h
+2
-2
ds3d.c
dlls/dsound/tests/ds3d.c
+1
-1
ds3d8.c
dlls/dsound/tests/ds3d8.c
+1
-1
dsound.c
dlls/dsound/tests/dsound.c
+2
-2
dsound8.c
dlls/dsound/tests/dsound8.c
+2
-2
propset.c
dlls/dsound/tests/propset.c
+2
-2
dswave_private.h
dlls/dswave/dswave_private.h
+2
-2
dxdiag_private.h
dlls/dxdiagn/dxdiag_private.h
+2
-2
brush.c
dlls/gdi/tests/brush.c
+1
-1
environ.c
dlls/kernel/tests/environ.c
+1
-1
file.c
dlls/kernel/tests/file.c
+5
-5
locale.c
dlls/kernel/tests/locale.c
+8
-8
mailslot.c
dlls/kernel/tests/mailslot.c
+1
-1
profile.c
dlls/mscms/tests/profile.c
+18
-18
action.c
dlls/msi/action.c
+1
-1
db.c
dlls/msi/tests/db.c
+1
-1
headers.c
dlls/msvcrt/tests/headers.c
+3
-3
large_int.c
dlls/ntdll/tests/large_int.c
+1
-1
reg.c
dlls/ntdll/tests/reg.c
+1
-1
compobj.c
dlls/ole32/compobj.c
+1
-1
ifs.c
dlls/ole32/ifs.c
+1
-1
marshal.c
dlls/ole32/tests/marshal.c
+26
-26
propvariant.c
dlls/ole32/tests/propvariant.c
+2
-2
safearray.c
dlls/oleaut32/tests/safearray.c
+1
-1
qcap_main.c
dlls/qcap/qcap_main.c
+1
-1
filtergraph.c
dlls/quartz/tests/filtergraph.c
+4
-4
shdocvw.h
dlls/shdocvw/shdocvw.h
+2
-2
shdocvw_main.c
dlls/shdocvw/shdocvw_main.c
+2
-2
shelllink.c
dlls/shell32/tests/shelllink.c
+2
-2
clist.c
dlls/shlwapi/tests/clist.c
+1
-1
shreg.c
dlls/shlwapi/tests/shreg.c
+1
-1
combo.c
dlls/user/combo.c
+1
-1
edit.c
dlls/user/tests/edit.c
+1
-1
afm.c
dlls/wineps/afm.c
+1
-1
protocol.c
dlls/winsock/tests/protocol.c
+2
-2
info.c
dlls/winspool/info.c
+1
-1
context.c
dlls/wintab32/context.c
+1
-1
dialog.h
programs/notepad/dialog.h
+1
-1
grpfile.c
programs/progman/grpfile.c
+2
-2
winegcc.c
tools/winegcc/winegcc.c
+1
-1
No files found.
dlls/advapi32/tests/crypt.c
View file @
ac6f562b
...
@@ -494,7 +494,7 @@ static BOOL FindProvTypesRegVals(DWORD dwIndex, DWORD *pdwProvType, LPSTR *pszTy
...
@@ -494,7 +494,7 @@ static BOOL FindProvTypesRegVals(DWORD dwIndex, DWORD *pdwProvType, LPSTR *pszTy
return
TRUE
;
return
TRUE
;
}
}
static
void
test_enum_provider_types
()
static
void
test_enum_provider_types
(
void
)
{
{
/* expected values */
/* expected values */
DWORD
dwProvType
;
DWORD
dwProvType
;
...
@@ -634,7 +634,7 @@ static BOOL FindDfltProvRegVals(DWORD dwProvType, DWORD dwFlags, LPSTR *pszProvN
...
@@ -634,7 +634,7 @@ static BOOL FindDfltProvRegVals(DWORD dwProvType, DWORD dwFlags, LPSTR *pszProvN
return
TRUE
;
return
TRUE
;
}
}
static
void
test_get_default_provider
()
static
void
test_get_default_provider
(
void
)
{
{
/* expected results */
/* expected results */
DWORD
dwProvType
=
PROV_RSA_FULL
;
DWORD
dwProvType
=
PROV_RSA_FULL
;
...
@@ -708,7 +708,7 @@ static void test_get_default_provider()
...
@@ -708,7 +708,7 @@ static void test_get_default_provider()
LocalFree
(
provName
);
LocalFree
(
provName
);
}
}
static
void
test_set_provider_ex
()
static
void
test_set_provider_ex
(
void
)
{
{
DWORD
result
;
DWORD
result
;
DWORD
notNull
=
5
;
DWORD
notNull
=
5
;
...
...
dlls/advapi32/tests/crypt_lmhash.c
View file @
ac6f562b
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
typedef
VOID
(
WINAPI
*
fnSystemFunction006
)(
PCSTR
passwd
,
PSTR
lmhash
);
typedef
VOID
(
WINAPI
*
fnSystemFunction006
)(
PCSTR
passwd
,
PSTR
lmhash
);
fnSystemFunction006
pSystemFunction006
;
fnSystemFunction006
pSystemFunction006
;
static
void
test_SystemFunction006
()
static
void
test_SystemFunction006
(
void
)
{
{
static
unsigned
char
lmhash
[
16
+
1
];
static
unsigned
char
lmhash
[
16
+
1
];
...
...
dlls/advapi32/tests/registry.c
View file @
ac6f562b
...
@@ -243,7 +243,7 @@ static void test_enum_value(void)
...
@@ -243,7 +243,7 @@ static void test_enum_value(void)
ok
(
!
memcmp
(
dataW
,
foobarW
,
sizeof
(
foobarW
)
),
"data is not 'foobar'
\n
"
);
ok
(
!
memcmp
(
dataW
,
foobarW
,
sizeof
(
foobarW
)
),
"data is not 'foobar'
\n
"
);
}
}
static
void
test_query_value_ex
()
static
void
test_query_value_ex
(
void
)
{
{
DWORD
ret
;
DWORD
ret
;
DWORD
size
;
DWORD
size
;
...
@@ -255,7 +255,7 @@ static void test_query_value_ex()
...
@@ -255,7 +255,7 @@ static void test_query_value_ex()
ok
(
type
==
REG_SZ
,
"type %ld is not REG_SZ
\n
"
,
type
);
ok
(
type
==
REG_SZ
,
"type %ld is not REG_SZ
\n
"
,
type
);
}
}
static
void
test_reg_open_key
()
static
void
test_reg_open_key
(
void
)
{
{
DWORD
ret
=
0
;
DWORD
ret
=
0
;
HKEY
hkResult
=
NULL
;
HKEY
hkResult
=
NULL
;
...
@@ -330,7 +330,7 @@ static void test_reg_open_key()
...
@@ -330,7 +330,7 @@ static void test_reg_open_key()
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER, got %ld
\n
"
,
ret
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER, got %ld
\n
"
,
ret
);
}
}
static
void
test_reg_create_key
()
static
void
test_reg_create_key
(
void
)
{
{
LONG
ret
;
LONG
ret
;
HKEY
hkey1
,
hkey2
;
HKEY
hkey1
,
hkey2
;
...
@@ -346,7 +346,7 @@ static void test_reg_create_key()
...
@@ -346,7 +346,7 @@ static void test_reg_create_key()
RegDeleteKey
(
hkey1
,
NULL
);
RegDeleteKey
(
hkey1
,
NULL
);
}
}
static
void
test_reg_close_key
()
static
void
test_reg_close_key
(
void
)
{
{
DWORD
ret
=
0
;
DWORD
ret
=
0
;
HKEY
hkHandle
;
HKEY
hkHandle
;
...
@@ -369,7 +369,7 @@ static void test_reg_close_key()
...
@@ -369,7 +369,7 @@ static void test_reg_close_key()
"expected ERROR_INVALID_HANDLE or ERROR_BADKEY, got %ld
\n
"
,
ret
);
"expected ERROR_INVALID_HANDLE or ERROR_BADKEY, got %ld
\n
"
,
ret
);
}
}
static
void
test_reg_delete_key
()
static
void
test_reg_delete_key
(
void
)
{
{
DWORD
ret
;
DWORD
ret
;
...
@@ -378,7 +378,7 @@ static void test_reg_delete_key()
...
@@ -378,7 +378,7 @@ static void test_reg_delete_key()
"expected ERROR_INVALID_PARAMETER or ERROR_ACCESS_DENIED, got %ld
\n
"
,
ret
);
"expected ERROR_INVALID_PARAMETER or ERROR_ACCESS_DENIED, got %ld
\n
"
,
ret
);
}
}
static
void
test_reg_save_key
()
static
void
test_reg_save_key
(
void
)
{
{
DWORD
ret
;
DWORD
ret
;
...
@@ -386,7 +386,7 @@ static void test_reg_save_key()
...
@@ -386,7 +386,7 @@ static void test_reg_save_key()
ok
(
ret
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %ld
\n
"
,
ret
);
ok
(
ret
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %ld
\n
"
,
ret
);
}
}
static
void
test_reg_load_key
()
static
void
test_reg_load_key
(
void
)
{
{
DWORD
ret
;
DWORD
ret
;
HKEY
hkHandle
;
HKEY
hkHandle
;
...
@@ -400,7 +400,7 @@ static void test_reg_load_key()
...
@@ -400,7 +400,7 @@ static void test_reg_load_key()
RegCloseKey
(
hkHandle
);
RegCloseKey
(
hkHandle
);
}
}
static
void
test_reg_unload_key
()
static
void
test_reg_unload_key
(
void
)
{
{
DWORD
ret
;
DWORD
ret
;
...
...
dlls/advpack/tests/advpack.c
View file @
ac6f562b
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
static
HRESULT
(
WINAPI
*
pGetVersionFromFile
)(
LPSTR
,
LPDWORD
,
LPDWORD
,
BOOL
);
static
HRESULT
(
WINAPI
*
pGetVersionFromFile
)(
LPSTR
,
LPDWORD
,
LPDWORD
,
BOOL
);
static
HRESULT
(
WINAPI
*
pDelNode
)(
LPCSTR
,
DWORD
);
static
HRESULT
(
WINAPI
*
pDelNode
)(
LPCSTR
,
DWORD
);
static
void
version_test
()
static
void
version_test
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
DWORD
major
,
minor
;
DWORD
major
,
minor
;
...
@@ -49,7 +49,7 @@ static void version_test()
...
@@ -49,7 +49,7 @@ static void version_test()
HIWORD
(
minor
),
LOWORD
(
minor
));
HIWORD
(
minor
),
LOWORD
(
minor
));
}
}
static
void
delnode_test
()
static
void
delnode_test
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
HANDLE
hn
;
HANDLE
hn
;
...
...
dlls/comctl32/listview.c
View file @
ac6f562b
...
@@ -549,7 +549,7 @@ static inline LPCSTR debugtext_tn(LPCWSTR text, BOOL isW, INT n)
...
@@ -549,7 +549,7 @@ static inline LPCSTR debugtext_tn(LPCWSTR text, BOOL isW, INT n)
return
isW
?
debugstr_wn
(
text
,
n
)
:
debugstr_an
((
LPCSTR
)
text
,
n
);
return
isW
?
debugstr_wn
(
text
,
n
)
:
debugstr_an
((
LPCSTR
)
text
,
n
);
}
}
static
char
*
debug_getbuf
()
static
char
*
debug_getbuf
(
void
)
{
{
static
int
index
=
0
;
static
int
index
=
0
;
static
char
buffers
[
DEBUG_BUFFERS
][
DEBUG_BUFFER_SIZE
];
static
char
buffers
[
DEBUG_BUFFERS
][
DEBUG_BUFFER_SIZE
];
...
...
dlls/comctl32/tests/imagelist.c
View file @
ac6f562b
...
@@ -469,7 +469,7 @@ static BOOL DoTest3(void)
...
@@ -469,7 +469,7 @@ static BOOL DoTest3(void)
return
TRUE
;
return
TRUE
;
}
}
static
void
testMerge
()
static
void
testMerge
(
void
)
{
{
HIMAGELIST
himl1
,
himl2
,
hmerge
;
HIMAGELIST
himl1
,
himl2
,
hmerge
;
HICON
hicon1
;
HICON
hicon1
;
...
...
dlls/ddraw/tests/d3d.c
View file @
ac6f562b
...
@@ -41,7 +41,7 @@ static void init_function_pointers(void)
...
@@ -41,7 +41,7 @@ static void init_function_pointers(void)
}
}
static
void
CreateDirect3D
()
static
void
CreateDirect3D
(
void
)
{
{
HRESULT
rc
;
HRESULT
rc
;
DDSURFACEDESC2
ddsd
;
DDSURFACEDESC2
ddsd
;
...
@@ -70,7 +70,7 @@ static void CreateDirect3D()
...
@@ -70,7 +70,7 @@ static void CreateDirect3D()
ok
(
rc
==
D3D_OK
,
"CreateDevice returned: %lx
\n
"
,
rc
);
ok
(
rc
==
D3D_OK
,
"CreateDevice returned: %lx
\n
"
,
rc
);
}
}
static
void
ReleaseDirect3D
()
static
void
ReleaseDirect3D
(
void
)
{
{
if
(
lpD3DDevice
!=
NULL
)
if
(
lpD3DDevice
!=
NULL
)
{
{
...
@@ -97,7 +97,7 @@ static void ReleaseDirect3D()
...
@@ -97,7 +97,7 @@ static void ReleaseDirect3D()
}
}
}
}
static
void
LightTest
()
static
void
LightTest
(
void
)
{
{
HRESULT
rc
;
HRESULT
rc
;
D3DLIGHT7
light
;
D3DLIGHT7
light
;
...
...
dlls/ddraw/tests/ddrawmodes.c
View file @
ac6f562b
...
@@ -31,7 +31,7 @@ static int modes_cnt;
...
@@ -31,7 +31,7 @@ static int modes_cnt;
static
int
modes_size
;
static
int
modes_size
;
static
LPDDSURFACEDESC
modes
;
static
LPDDSURFACEDESC
modes
;
static
void
createdirectdraw
()
static
void
createdirectdraw
(
void
)
{
{
HRESULT
rc
;
HRESULT
rc
;
...
@@ -64,7 +64,7 @@ static void createdirectdraw()
...
@@ -64,7 +64,7 @@ static void createdirectdraw()
}
}
static
void
releasedirectdraw
()
static
void
releasedirectdraw
(
void
)
{
{
if
(
lpDD
!=
NULL
)
if
(
lpDD
!=
NULL
)
{
{
...
@@ -83,7 +83,7 @@ static void adddisplaymode(LPDDSURFACEDESC lpddsd)
...
@@ -83,7 +83,7 @@ static void adddisplaymode(LPDDSURFACEDESC lpddsd)
modes
[
modes_cnt
++
]
=
*
lpddsd
;
modes
[
modes_cnt
++
]
=
*
lpddsd
;
}
}
static
void
flushdisplaymodes
()
static
void
flushdisplaymodes
(
void
)
{
{
free
(
modes
);
free
(
modes
);
modes
=
0
;
modes
=
0
;
...
@@ -100,7 +100,7 @@ HRESULT WINAPI enummodescallback(LPDDSURFACEDESC lpddsd, LPVOID lpContext)
...
@@ -100,7 +100,7 @@ HRESULT WINAPI enummodescallback(LPDDSURFACEDESC lpddsd, LPVOID lpContext)
return
DDENUMRET_OK
;
return
DDENUMRET_OK
;
}
}
void
enumdisplaymodes
()
void
enumdisplaymodes
(
void
)
{
{
DDSURFACEDESC
ddsd
;
DDSURFACEDESC
ddsd
;
HRESULT
rc
;
HRESULT
rc
;
...
@@ -138,7 +138,7 @@ static void setdisplaymode(int i)
...
@@ -138,7 +138,7 @@ static void setdisplaymode(int i)
}
}
}
}
static
void
createsurface
()
static
void
createsurface
(
void
)
{
{
DDSURFACEDESC
ddsd
;
DDSURFACEDESC
ddsd
;
DDSCAPS
ddscaps
;
DDSCAPS
ddscaps
;
...
@@ -157,7 +157,7 @@ static void createsurface()
...
@@ -157,7 +157,7 @@ static void createsurface()
ok
(
rc
==
DD_OK
,
"GetAttachedSurface returned: %lx
\n
"
,
rc
);
ok
(
rc
==
DD_OK
,
"GetAttachedSurface returned: %lx
\n
"
,
rc
);
}
}
static
void
destroysurface
()
static
void
destroysurface
(
void
)
{
{
if
(
lpDDSPrimary
!=
NULL
)
if
(
lpDDSPrimary
!=
NULL
)
{
{
...
@@ -166,7 +166,7 @@ static void destroysurface()
...
@@ -166,7 +166,7 @@ static void destroysurface()
}
}
}
}
static
void
testsurface
()
static
void
testsurface
(
void
)
{
{
const
char
*
testMsg
=
"ddraw device context test"
;
const
char
*
testMsg
=
"ddraw device context test"
;
HDC
hdc
;
HDC
hdc
;
...
@@ -197,7 +197,7 @@ static void testsurface()
...
@@ -197,7 +197,7 @@ static void testsurface()
}
}
}
}
static
void
testdisplaymodes
()
static
void
testdisplaymodes
(
void
)
{
{
int
i
;
int
i
;
...
...
dlls/ddraw/tests/dsurface.c
View file @
ac6f562b
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
static
LPDIRECTDRAW
lpDD
=
NULL
;
static
LPDIRECTDRAW
lpDD
=
NULL
;
static
void
CreateDirectDraw
()
static
void
CreateDirectDraw
(
void
)
{
{
HRESULT
rc
;
HRESULT
rc
;
...
@@ -36,7 +36,7 @@ static void CreateDirectDraw()
...
@@ -36,7 +36,7 @@ static void CreateDirectDraw()
}
}
static
void
ReleaseDirectDraw
()
static
void
ReleaseDirectDraw
(
void
)
{
{
if
(
lpDD
!=
NULL
)
if
(
lpDD
!=
NULL
)
{
{
...
@@ -45,7 +45,7 @@ static void ReleaseDirectDraw()
...
@@ -45,7 +45,7 @@ static void ReleaseDirectDraw()
}
}
}
}
static
void
MipMapCreationTest
()
static
void
MipMapCreationTest
(
void
)
{
{
LPDIRECTDRAWSURFACE
lpDDSMipMapTest
;
LPDIRECTDRAWSURFACE
lpDDSMipMapTest
;
DDSURFACEDESC
ddsd
;
DDSURFACEDESC
ddsd
;
...
...
dlls/dinput/tests/joystick.c
View file @
ac6f562b
...
@@ -69,7 +69,7 @@ static const DIDATAFORMAT c_dfDIJoystickTest = {
...
@@ -69,7 +69,7 @@ static const DIDATAFORMAT c_dfDIJoystickTest = {
(
LPDIOBJECTDATAFORMAT
)
dfDIJoystickTest
(
LPDIOBJECTDATAFORMAT
)
dfDIJoystickTest
};
};
HWND
get_hwnd
()
HWND
get_hwnd
(
void
)
{
{
HWND
hwnd
=
GetForegroundWindow
();
HWND
hwnd
=
GetForegroundWindow
();
if
(
!
hwnd
)
if
(
!
hwnd
)
...
...
dlls/dinput/tests/keyboard.c
View file @
ac6f562b
...
@@ -67,7 +67,7 @@ const char * get_file_version(const char * file_name)
...
@@ -67,7 +67,7 @@ const char * get_file_version(const char * file_name)
return
version
;
return
version
;
}
}
static
void
keyboard_tests
()
static
void
keyboard_tests
(
void
)
{
{
}
}
...
...
dlls/dmband/dmband_private.h
View file @
ac6f562b
...
@@ -138,8 +138,8 @@ extern ULONG WINAPI IDirectMusicBandTrack_IPersistStream_AddRef (LPPERSISTSTRE
...
@@ -138,8 +138,8 @@ extern ULONG WINAPI IDirectMusicBandTrack_IPersistStream_AddRef (LPPERSISTSTRE
* Dll lifetime tracking declaration for dmband.dll
* Dll lifetime tracking declaration for dmband.dll
*/
*/
extern
LONG
DMBAND_refCount
;
extern
LONG
DMBAND_refCount
;
static
inline
void
DMBAND_LockModule
()
{
InterlockedIncrement
(
&
DMBAND_refCount
);
}
static
inline
void
DMBAND_LockModule
(
void
)
{
InterlockedIncrement
(
&
DMBAND_refCount
);
}
static
inline
void
DMBAND_UnlockModule
()
{
InterlockedDecrement
(
&
DMBAND_refCount
);
}
static
inline
void
DMBAND_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DMBAND_refCount
);
}
/*****************************************************************************
/*****************************************************************************
* Misc.
* Misc.
...
...
dlls/dmcompos/dmcompos_private.h
View file @
ac6f562b
...
@@ -144,8 +144,8 @@ extern ULONG WINAPI IDirectMusicSignPostTrack_IPersistStream_AddRef (LPPERSIST
...
@@ -144,8 +144,8 @@ extern ULONG WINAPI IDirectMusicSignPostTrack_IPersistStream_AddRef (LPPERSIST
* Dll lifetime tracking declaration for dmcompos.dll
* Dll lifetime tracking declaration for dmcompos.dll
*/
*/
extern
LONG
DMCOMPOS_refCount
;
extern
LONG
DMCOMPOS_refCount
;
static
inline
void
DMCOMPOS_LockModule
()
{
InterlockedIncrement
(
&
DMCOMPOS_refCount
);
}
static
inline
void
DMCOMPOS_LockModule
(
void
)
{
InterlockedIncrement
(
&
DMCOMPOS_refCount
);
}
static
inline
void
DMCOMPOS_UnlockModule
()
{
InterlockedDecrement
(
&
DMCOMPOS_refCount
);
}
static
inline
void
DMCOMPOS_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DMCOMPOS_refCount
);
}
/*****************************************************************************
/*****************************************************************************
* Misc.
* Misc.
...
...
dlls/dmime/dmime_private.h
View file @
ac6f562b
...
@@ -547,8 +547,8 @@ extern ULONG WINAPI IDirectMusicWaveTrack_IPersistStream_AddRef (LPPERSISTSTRE
...
@@ -547,8 +547,8 @@ extern ULONG WINAPI IDirectMusicWaveTrack_IPersistStream_AddRef (LPPERSISTSTRE
* Dll lifetime tracking declaration for dmime.dll
* Dll lifetime tracking declaration for dmime.dll
*/
*/
extern
LONG
DMIME_refCount
;
extern
LONG
DMIME_refCount
;
static
inline
void
DMIME_LockModule
()
{
InterlockedIncrement
(
&
DMIME_refCount
);
}
static
inline
void
DMIME_LockModule
(
void
)
{
InterlockedIncrement
(
&
DMIME_refCount
);
}
static
inline
void
DMIME_UnlockModule
()
{
InterlockedDecrement
(
&
DMIME_refCount
);
}
static
inline
void
DMIME_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DMIME_refCount
);
}
/*****************************************************************************
/*****************************************************************************
* Misc.
* Misc.
...
...
dlls/dmscript/dmscript_private.h
View file @
ac6f562b
...
@@ -112,8 +112,8 @@ extern ULONG WINAPI IDirectMusicScriptTrack_IPersistStream_AddRef (LPPERSISTST
...
@@ -112,8 +112,8 @@ extern ULONG WINAPI IDirectMusicScriptTrack_IPersistStream_AddRef (LPPERSISTST
* Dll lifetime tracking declaration for dmscript.dll
* Dll lifetime tracking declaration for dmscript.dll
*/
*/
extern
LONG
DMSCRIPT_refCount
;
extern
LONG
DMSCRIPT_refCount
;
static
inline
void
DMSCRIPT_LockModule
()
{
InterlockedIncrement
(
&
DMSCRIPT_refCount
);
}
static
inline
void
DMSCRIPT_LockModule
(
void
)
{
InterlockedIncrement
(
&
DMSCRIPT_refCount
);
}
static
inline
void
DMSCRIPT_UnlockModule
()
{
InterlockedDecrement
(
&
DMSCRIPT_refCount
);
}
static
inline
void
DMSCRIPT_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DMSCRIPT_refCount
);
}
/*****************************************************************************
/*****************************************************************************
* Misc.
* Misc.
...
...
dlls/dmstyle/dmstyle_private.h
View file @
ac6f562b
...
@@ -299,8 +299,8 @@ extern ULONG WINAPI IDirectMusicStyleTrack_IPersistStream_AddRef (LPPERSISTSTR
...
@@ -299,8 +299,8 @@ extern ULONG WINAPI IDirectMusicStyleTrack_IPersistStream_AddRef (LPPERSISTSTR
* Dll lifetime tracking declaration for dmstyle.dll
* Dll lifetime tracking declaration for dmstyle.dll
*/
*/
extern
LONG
DMSTYLE_refCount
;
extern
LONG
DMSTYLE_refCount
;
static
inline
void
DMSTYLE_LockModule
()
{
InterlockedIncrement
(
&
DMSTYLE_refCount
);
}
static
inline
void
DMSTYLE_LockModule
(
void
)
{
InterlockedIncrement
(
&
DMSTYLE_refCount
);
}
static
inline
void
DMSTYLE_UnlockModule
()
{
InterlockedDecrement
(
&
DMSTYLE_refCount
);
}
static
inline
void
DMSTYLE_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DMSTYLE_refCount
);
}
/*****************************************************************************
/*****************************************************************************
* Misc.
* Misc.
...
...
dlls/dmsynth/dmsynth_private.h
View file @
ac6f562b
...
@@ -89,8 +89,8 @@ extern ULONG WINAPI IDirectMusicSynthSinkImpl_AddRef (LPDIRECTMUSICSYNTHSINK i
...
@@ -89,8 +89,8 @@ extern ULONG WINAPI IDirectMusicSynthSinkImpl_AddRef (LPDIRECTMUSICSYNTHSINK i
* Dll lifetime tracking declaration for dmsynth.dll
* Dll lifetime tracking declaration for dmsynth.dll
*/
*/
extern
LONG
DMSYNTH_refCount
;
extern
LONG
DMSYNTH_refCount
;
static
inline
void
DMSYNTH_LockModule
()
{
InterlockedIncrement
(
&
DMSYNTH_refCount
);
}
static
inline
void
DMSYNTH_LockModule
(
void
)
{
InterlockedIncrement
(
&
DMSYNTH_refCount
);
}
static
inline
void
DMSYNTH_UnlockModule
()
{
InterlockedDecrement
(
&
DMSYNTH_refCount
);
}
static
inline
void
DMSYNTH_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DMSYNTH_refCount
);
}
/*****************************************************************************
/*****************************************************************************
* Misc.
* Misc.
...
...
dlls/dmusic/dmusic_private.h
View file @
ac6f562b
...
@@ -286,8 +286,8 @@ extern HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTR
...
@@ -286,8 +286,8 @@ extern HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTR
* Dll lifetime tracking declaration for dmusic.dll
* Dll lifetime tracking declaration for dmusic.dll
*/
*/
extern
LONG
DMUSIC_refCount
;
extern
LONG
DMUSIC_refCount
;
static
inline
void
DMUSIC_LockModule
()
{
InterlockedIncrement
(
&
DMUSIC_refCount
);
}
static
inline
void
DMUSIC_LockModule
(
void
)
{
InterlockedIncrement
(
&
DMUSIC_refCount
);
}
static
inline
void
DMUSIC_UnlockModule
()
{
InterlockedDecrement
(
&
DMUSIC_refCount
);
}
static
inline
void
DMUSIC_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DMUSIC_refCount
);
}
/*****************************************************************************
/*****************************************************************************
* Helper Functions
* Helper Functions
...
...
dlls/dsound/tests/ds3d.c
View file @
ac6f562b
...
@@ -1225,7 +1225,7 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
...
@@ -1225,7 +1225,7 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
return
1
;
return
1
;
}
}
static
void
ds3d_tests
()
static
void
ds3d_tests
(
void
)
{
{
HRESULT
rc
;
HRESULT
rc
;
rc
=
DirectSoundEnumerateA
(
&
dsenum_callback
,
NULL
);
rc
=
DirectSoundEnumerateA
(
&
dsenum_callback
,
NULL
);
...
...
dlls/dsound/tests/ds3d8.c
View file @
ac6f562b
...
@@ -1118,7 +1118,7 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
...
@@ -1118,7 +1118,7 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
return
1
;
return
1
;
}
}
static
void
ds3d8_tests
()
static
void
ds3d8_tests
(
void
)
{
{
HRESULT
rc
;
HRESULT
rc
;
rc
=
DirectSoundEnumerateA
(
&
dsenum_callback
,
NULL
);
rc
=
DirectSoundEnumerateA
(
&
dsenum_callback
,
NULL
);
...
...
dlls/dsound/tests/dsound.c
View file @
ac6f562b
...
@@ -168,7 +168,7 @@ EXIT:
...
@@ -168,7 +168,7 @@ EXIT:
ok
(
ref
==
0
,
"IDirectSound_Release() has %d references, should have 0
\n
"
,
ref
);
ok
(
ref
==
0
,
"IDirectSound_Release() has %d references, should have 0
\n
"
,
ref
);
}
}
static
void
IDirectSound_tests
()
static
void
IDirectSound_tests
(
void
)
{
{
HRESULT
rc
;
HRESULT
rc
;
LPDIRECTSOUND
dso
=
NULL
;
LPDIRECTSOUND
dso
=
NULL
;
...
@@ -928,7 +928,7 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
...
@@ -928,7 +928,7 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
return
1
;
return
1
;
}
}
static
void
dsound_tests
()
static
void
dsound_tests
(
void
)
{
{
HRESULT
rc
;
HRESULT
rc
;
rc
=
DirectSoundEnumerateA
(
&
dsenum_callback
,
NULL
);
rc
=
DirectSoundEnumerateA
(
&
dsenum_callback
,
NULL
);
...
...
dlls/dsound/tests/dsound8.c
View file @
ac6f562b
...
@@ -187,7 +187,7 @@ EXIT:
...
@@ -187,7 +187,7 @@ EXIT:
ok
(
ref
==
0
,
"IDirectSound8_Release() has %d references, should have 0
\n
"
,
ref
);
ok
(
ref
==
0
,
"IDirectSound8_Release() has %d references, should have 0
\n
"
,
ref
);
}
}
static
void
IDirectSound8_tests
()
static
void
IDirectSound8_tests
(
void
)
{
{
HRESULT
rc
;
HRESULT
rc
;
LPDIRECTSOUND8
dso
=
NULL
;
LPDIRECTSOUND8
dso
=
NULL
;
...
@@ -790,7 +790,7 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
...
@@ -790,7 +790,7 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
return
1
;
return
1
;
}
}
static
void
dsound8_tests
()
static
void
dsound8_tests
(
void
)
{
{
HRESULT
rc
;
HRESULT
rc
;
rc
=
DirectSoundEnumerateA
(
&
dsenum_callback
,
NULL
);
rc
=
DirectSoundEnumerateA
(
&
dsenum_callback
,
NULL
);
...
...
dlls/dsound/tests/propset.c
View file @
ac6f562b
...
@@ -178,7 +178,7 @@ BOOL CALLBACK callbackW(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA data,
...
@@ -178,7 +178,7 @@ BOOL CALLBACK callbackW(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA data,
return
TRUE
;
return
TRUE
;
}
}
static
void
propset_private_tests
()
static
void
propset_private_tests
(
void
)
{
{
HMODULE
hDsound
;
HMODULE
hDsound
;
HRESULT
rc
;
HRESULT
rc
;
...
@@ -700,7 +700,7 @@ EXIT:
...
@@ -700,7 +700,7 @@ EXIT:
return
1
;
return
1
;
}
}
static
void
propset_buffer_tests
()
static
void
propset_buffer_tests
(
void
)
{
{
HRESULT
rc
;
HRESULT
rc
;
rc
=
DirectSoundEnumerateA
(
&
dsenum_callback
,
NULL
);
rc
=
DirectSoundEnumerateA
(
&
dsenum_callback
,
NULL
);
...
...
dlls/dswave/dswave_private.h
View file @
ac6f562b
...
@@ -81,8 +81,8 @@ extern ULONG WINAPI IDirectMusicWaveImpl_IPersistStream_AddRef (LPPERSISTSTREA
...
@@ -81,8 +81,8 @@ extern ULONG WINAPI IDirectMusicWaveImpl_IPersistStream_AddRef (LPPERSISTSTREA
* Dll lifetime tracking declaration for dswave.dll
* Dll lifetime tracking declaration for dswave.dll
*/
*/
extern
LONG
DSWAVE_refCount
;
extern
LONG
DSWAVE_refCount
;
static
inline
void
DSWAVE_LockModule
()
{
InterlockedIncrement
(
&
DSWAVE_refCount
);
}
static
inline
void
DSWAVE_LockModule
(
void
)
{
InterlockedIncrement
(
&
DSWAVE_refCount
);
}
static
inline
void
DSWAVE_UnlockModule
()
{
InterlockedDecrement
(
&
DSWAVE_refCount
);
}
static
inline
void
DSWAVE_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DSWAVE_refCount
);
}
/*****************************************************************************
/*****************************************************************************
* Misc.
* Misc.
...
...
dlls/dxdiagn/dxdiag_private.h
View file @
ac6f562b
...
@@ -114,7 +114,7 @@ extern HRESULT DXDiag_InitRootDXDiagContainer(IDxDiagContainer* pRootCont);
...
@@ -114,7 +114,7 @@ extern HRESULT DXDiag_InitRootDXDiagContainer(IDxDiagContainer* pRootCont);
* Dll lifetime tracking declaration for dxdiagn.dll
* Dll lifetime tracking declaration for dxdiagn.dll
*/
*/
extern
LONG
DXDIAGN_refCount
;
extern
LONG
DXDIAGN_refCount
;
static
inline
void
DXDIAGN_LockModule
()
{
InterlockedIncrement
(
&
DXDIAGN_refCount
);
}
static
inline
void
DXDIAGN_LockModule
(
void
)
{
InterlockedIncrement
(
&
DXDIAGN_refCount
);
}
static
inline
void
DXDIAGN_UnlockModule
()
{
InterlockedDecrement
(
&
DXDIAGN_refCount
);
}
static
inline
void
DXDIAGN_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DXDIAGN_refCount
);
}
#endif
#endif
dlls/gdi/tests/brush.c
View file @
ac6f562b
...
@@ -32,7 +32,7 @@ typedef struct _STOCK_BRUSH {
...
@@ -32,7 +32,7 @@ typedef struct _STOCK_BRUSH {
const
char
*
name
;
const
char
*
name
;
}
STOCK_BRUSH
;
}
STOCK_BRUSH
;
static
void
test_solidbrush
()
static
void
test_solidbrush
(
void
)
{
{
static
const
STOCK_BRUSH
stock
[]
=
{
static
const
STOCK_BRUSH
stock
[]
=
{
{
RGB
(
255
,
255
,
255
),
WHITE_BRUSH
,
"white"
},
{
RGB
(
255
,
255
,
255
),
WHITE_BRUSH
,
"white"
},
...
...
dlls/kernel/tests/environ.c
View file @
ac6f562b
...
@@ -211,7 +211,7 @@ static void test_GetSetEnvironmentVariableW(void)
...
@@ -211,7 +211,7 @@ static void test_GetSetEnvironmentVariableW(void)
ret
,
GetLastError
());
ret
,
GetLastError
());
}
}
static
void
test_ExpandEnvironmentStringsA
()
static
void
test_ExpandEnvironmentStringsA
(
void
)
{
{
char
buf
[
256
],
buf1
[
256
];
char
buf
[
256
],
buf1
[
256
];
DWORD
ret_size
,
ret_size1
;
DWORD
ret_size
,
ret_size1
;
...
...
dlls/kernel/tests/file.c
View file @
ac6f562b
...
@@ -712,7 +712,7 @@ static void test_CreateFileW(void)
...
@@ -712,7 +712,7 @@ static void test_CreateFileW(void)
"CreateFileW on invalid VxD name returned ret=%p error=%ld
\n
"
,
hFile
,
GetLastError
());
"CreateFileW on invalid VxD name returned ret=%p error=%ld
\n
"
,
hFile
,
GetLastError
());
}
}
static
void
test_GetTempFileNameA
()
static
void
test_GetTempFileNameA
(
void
)
{
{
UINT
result
;
UINT
result
;
char
out
[
MAX_PATH
];
char
out
[
MAX_PATH
];
...
@@ -1170,14 +1170,14 @@ static void test_file_sharing(void)
...
@@ -1170,14 +1170,14 @@ static void test_file_sharing(void)
DeleteFileA
(
filename
);
DeleteFileA
(
filename
);
}
}
static
char
get_windows_drive
()
static
char
get_windows_drive
(
void
)
{
{
char
windowsdir
[
MAX_PATH
];
char
windowsdir
[
MAX_PATH
];
GetWindowsDirectory
(
windowsdir
,
sizeof
(
windowsdir
));
GetWindowsDirectory
(
windowsdir
,
sizeof
(
windowsdir
));
return
windowsdir
[
0
];
return
windowsdir
[
0
];
}
}
static
void
test_FindFirstFileA
()
static
void
test_FindFirstFileA
(
void
)
{
{
HANDLE
handle
;
HANDLE
handle
;
WIN32_FIND_DATAA
search_results
;
WIN32_FIND_DATAA
search_results
;
...
@@ -1199,7 +1199,7 @@ static void test_FindFirstFileA()
...
@@ -1199,7 +1199,7 @@ static void test_FindFirstFileA()
ok
(
FindClose
(
handle
)
==
TRUE
,
"Failed to close handle
\n
"
);
ok
(
FindClose
(
handle
)
==
TRUE
,
"Failed to close handle
\n
"
);
}
}
static
void
test_FindNextFileA
()
static
void
test_FindNextFileA
(
void
)
{
{
HANDLE
handle
;
HANDLE
handle
;
WIN32_FIND_DATAA
search_results
;
WIN32_FIND_DATAA
search_results
;
...
@@ -1232,7 +1232,7 @@ static int test_Mapfile_createtemp(HANDLE *handle)
...
@@ -1232,7 +1232,7 @@ static int test_Mapfile_createtemp(HANDLE *handle)
return
0
;
return
0
;
}
}
static
void
test_MapFile
()
static
void
test_MapFile
(
void
)
{
{
HANDLE
handle
;
HANDLE
handle
;
HANDLE
hmap
;
HANDLE
hmap
;
...
...
dlls/kernel/tests/locale.c
View file @
ac6f562b
...
@@ -135,7 +135,7 @@ static char GlobalBuffer[BUFFER_SIZE]; /* Buffer used by callback function */
...
@@ -135,7 +135,7 @@ static char GlobalBuffer[BUFFER_SIZE]; /* Buffer used by callback function */
#define NUO LOCALE_NOUSEROVERRIDE
#define NUO LOCALE_NOUSEROVERRIDE
static
void
test_GetLocaleInfoA
()
static
void
test_GetLocaleInfoA
(
void
)
{
{
int
ret
;
int
ret
;
LCID
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
);
LCID
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
);
...
@@ -161,7 +161,7 @@ static void test_GetLocaleInfoA()
...
@@ -161,7 +161,7 @@ static void test_GetLocaleInfoA()
ok
(
!
strcmp
(
buffer
,
"Monday"
),
"Expected 'Monday', got '%s'
\n
"
,
buffer
);
ok
(
!
strcmp
(
buffer
,
"Monday"
),
"Expected 'Monday', got '%s'
\n
"
,
buffer
);
}
}
static
void
test_GetTimeFormatA
()
static
void
test_GetTimeFormatA
(
void
)
{
{
int
ret
;
int
ret
;
SYSTEMTIME
curtime
;
SYSTEMTIME
curtime
;
...
@@ -314,7 +314,7 @@ static void test_GetTimeFormatA()
...
@@ -314,7 +314,7 @@ static void test_GetTimeFormatA()
EXPECT_VALID
;
EXPECT_LENA
;
EXPECT_EQA
;
EXPECT_VALID
;
EXPECT_LENA
;
EXPECT_EQA
;
}
}
static
void
test_GetDateFormatA
()
static
void
test_GetDateFormatA
(
void
)
{
{
int
ret
;
int
ret
;
SYSTEMTIME
curtime
;
SYSTEMTIME
curtime
;
...
@@ -375,7 +375,7 @@ static void test_GetDateFormatA()
...
@@ -375,7 +375,7 @@ static void test_GetDateFormatA()
EXPECT_FLAGS
;
EXPECT_LEN
(
0
);
EXPECT_EQA
;
EXPECT_FLAGS
;
EXPECT_LEN
(
0
);
EXPECT_EQA
;
}
}
static
void
test_GetDateFormatW
()
static
void
test_GetDateFormatW
(
void
)
{
{
int
ret
;
int
ret
;
SYSTEMTIME
curtime
;
SYSTEMTIME
curtime
;
...
@@ -416,7 +416,7 @@ static void test_GetDateFormatW()
...
@@ -416,7 +416,7 @@ static void test_GetDateFormatW()
#define CY_POS_LEFT_SPACE 2
#define CY_POS_LEFT_SPACE 2
#define CY_POS_RIGHT_SPACE 3
#define CY_POS_RIGHT_SPACE 3
static
void
test_GetCurrencyFormatA
()
static
void
test_GetCurrencyFormatA
(
void
)
{
{
static
char
szDot
[]
=
{
'.'
,
'\0'
};
static
char
szDot
[]
=
{
'.'
,
'\0'
};
static
char
szComma
[]
=
{
','
,
'\0'
};
static
char
szComma
[]
=
{
','
,
'\0'
};
...
@@ -614,7 +614,7 @@ static void test_GetCurrencyFormatA()
...
@@ -614,7 +614,7 @@ static void test_GetCurrencyFormatA()
#define NEG_RIGHT 3
/* "1.1-" */
#define NEG_RIGHT 3
/* "1.1-" */
#define NEG_RIGHT_SPACE 4
/* "1.1 -" */
#define NEG_RIGHT_SPACE 4
/* "1.1 -" */
static
void
test_GetNumberFormatA
()
static
void
test_GetNumberFormatA
(
void
)
{
{
static
char
szDot
[]
=
{
'.'
,
'\0'
};
static
char
szDot
[]
=
{
'.'
,
'\0'
};
static
char
szComma
[]
=
{
','
,
'\0'
};
static
char
szComma
[]
=
{
','
,
'\0'
};
...
@@ -759,7 +759,7 @@ static BOOL CALLBACK EnumTimeFormatsProc(char * lpTimeFormatString)
...
@@ -759,7 +759,7 @@ static BOOL CALLBACK EnumTimeFormatsProc(char * lpTimeFormatString)
return
FALSE
;
return
FALSE
;
}
}
static
void
test_EnumTimeFormats
()
static
void
test_EnumTimeFormats
(
void
)
{
{
int
ret
;
int
ret
;
LCID
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
);
LCID
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
);
...
@@ -769,7 +769,7 @@ static void test_EnumTimeFormats()
...
@@ -769,7 +769,7 @@ static void test_EnumTimeFormats()
ok
(
ret
==
1
&&
!
strcmp
(
GlobalBuffer
,
"h:mm:ss tt"
),
"Expected %d '%s'
\n
"
,
ret
,
GlobalBuffer
);
ok
(
ret
==
1
&&
!
strcmp
(
GlobalBuffer
,
"h:mm:ss tt"
),
"Expected %d '%s'
\n
"
,
ret
,
GlobalBuffer
);
}
}
static
void
test_CompareStringA
()
static
void
test_CompareStringA
(
void
)
{
{
int
ret
;
int
ret
;
LCID
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_FRENCH
,
SUBLANG_DEFAULT
),
SORT_DEFAULT
);
LCID
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_FRENCH
,
SUBLANG_DEFAULT
),
SORT_DEFAULT
);
...
...
dlls/kernel/tests/mailslot.c
View file @
ac6f562b
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
static
const
char
szmspath
[]
=
"
\\\\
.
\\
mailslot
\\
wine_mailslot_test"
;
static
const
char
szmspath
[]
=
"
\\\\
.
\\
mailslot
\\
wine_mailslot_test"
;
static
int
mailslot_test
()
static
int
mailslot_test
(
void
)
{
{
HANDLE
hSlot
,
hSlot2
,
hWriter
,
hWriter2
;
HANDLE
hSlot
,
hSlot2
,
hWriter
,
hWriter2
;
unsigned
char
buffer
[
16
];
unsigned
char
buffer
[
16
];
...
...
dlls/mscms/tests/profile.c
View file @
ac6f562b
...
@@ -87,7 +87,7 @@ static void MSCMS_basenameW( LPCWSTR path, LPWSTR name )
...
@@ -87,7 +87,7 @@ static void MSCMS_basenameW( LPCWSTR path, LPWSTR name )
lstrcpyW
(
name
,
&
path
[
i
]
);
lstrcpyW
(
name
,
&
path
[
i
]
);
}
}
static
void
test_GetColorDirectoryA
()
static
void
test_GetColorDirectoryA
(
void
)
{
{
BOOL
ret
;
BOOL
ret
;
DWORD
size
;
DWORD
size
;
...
@@ -121,7 +121,7 @@ static void test_GetColorDirectoryA()
...
@@ -121,7 +121,7 @@ static void test_GetColorDirectoryA()
ok
(
ret
&&
size
>
0
,
"GetColorDirectoryA() failed (%ld)
\n
"
,
GetLastError
()
);
ok
(
ret
&&
size
>
0
,
"GetColorDirectoryA() failed (%ld)
\n
"
,
GetLastError
()
);
}
}
static
void
test_GetColorDirectoryW
()
static
void
test_GetColorDirectoryW
(
void
)
{
{
BOOL
ret
;
BOOL
ret
;
DWORD
size
;
DWORD
size
;
...
@@ -159,7 +159,7 @@ static void test_GetColorDirectoryW()
...
@@ -159,7 +159,7 @@ static void test_GetColorDirectoryW()
ok
(
ret
&&
size
>
0
,
"GetColorDirectoryW() failed (%ld)
\n
"
,
GetLastError
()
);
ok
(
ret
&&
size
>
0
,
"GetColorDirectoryW() failed (%ld)
\n
"
,
GetLastError
()
);
}
}
static
void
test_GetColorProfileElement
()
static
void
test_GetColorProfileElement
(
void
)
{
{
if
(
standardprofile
)
if
(
standardprofile
)
{
{
...
@@ -209,7 +209,7 @@ static void test_GetColorProfileElement()
...
@@ -209,7 +209,7 @@ static void test_GetColorProfileElement()
}
}
}
}
static
void
test_GetColorProfileElementTag
()
static
void
test_GetColorProfileElementTag
(
void
)
{
{
if
(
standardprofile
)
if
(
standardprofile
)
{
{
...
@@ -250,7 +250,7 @@ static void test_GetColorProfileElementTag()
...
@@ -250,7 +250,7 @@ static void test_GetColorProfileElementTag()
}
}
}
}
static
void
test_GetColorProfileFromHandle
()
static
void
test_GetColorProfileFromHandle
(
void
)
{
{
if
(
testprofile
)
if
(
testprofile
)
{
{
...
@@ -308,7 +308,7 @@ static void test_GetColorProfileFromHandle()
...
@@ -308,7 +308,7 @@ static void test_GetColorProfileFromHandle()
}
}
}
}
static
void
test_GetColorProfileHeader
()
static
void
test_GetColorProfileHeader
(
void
)
{
{
if
(
testprofile
)
if
(
testprofile
)
{
{
...
@@ -346,7 +346,7 @@ static void test_GetColorProfileHeader()
...
@@ -346,7 +346,7 @@ static void test_GetColorProfileHeader()
}
}
}
}
static
void
test_GetCountColorProfileElements
()
static
void
test_GetCountColorProfileElements
(
void
)
{
{
if
(
standardprofile
)
if
(
standardprofile
)
{
{
...
@@ -382,7 +382,7 @@ static void test_GetCountColorProfileElements()
...
@@ -382,7 +382,7 @@ static void test_GetCountColorProfileElements()
}
}
}
}
static
void
test_GetStandardColorSpaceProfileA
()
static
void
test_GetStandardColorSpaceProfileA
(
void
)
{
{
BOOL
ret
;
BOOL
ret
;
DWORD
size
;
DWORD
size
;
...
@@ -431,7 +431,7 @@ static void test_GetStandardColorSpaceProfileA()
...
@@ -431,7 +431,7 @@ static void test_GetStandardColorSpaceProfileA()
}
}
}
}
static
void
test_GetStandardColorSpaceProfileW
()
static
void
test_GetStandardColorSpaceProfileW
(
void
)
{
{
BOOL
ret
;
BOOL
ret
;
DWORD
size
;
DWORD
size
;
...
@@ -480,7 +480,7 @@ static void test_GetStandardColorSpaceProfileW()
...
@@ -480,7 +480,7 @@ static void test_GetStandardColorSpaceProfileW()
}
}
}
}
static
void
test_InstallColorProfileA
()
static
void
test_InstallColorProfileA
(
void
)
{
{
BOOL
ret
;
BOOL
ret
;
...
@@ -531,7 +531,7 @@ static void test_InstallColorProfileA()
...
@@ -531,7 +531,7 @@ static void test_InstallColorProfileA()
}
}
}
}
static
void
test_InstallColorProfileW
()
static
void
test_InstallColorProfileW
(
void
)
{
{
BOOL
ret
;
BOOL
ret
;
...
@@ -582,7 +582,7 @@ static void test_InstallColorProfileW()
...
@@ -582,7 +582,7 @@ static void test_InstallColorProfileW()
}
}
}
}
static
void
test_IsColorProfileTagPresent
()
static
void
test_IsColorProfileTagPresent
(
void
)
{
{
if
(
standardprofile
)
if
(
standardprofile
)
{
{
...
@@ -622,7 +622,7 @@ static void test_IsColorProfileTagPresent()
...
@@ -622,7 +622,7 @@ static void test_IsColorProfileTagPresent()
}
}
}
}
static
void
test_OpenColorProfileA
()
static
void
test_OpenColorProfileA
(
void
)
{
{
PROFILE
profile
;
PROFILE
profile
;
HPROFILE
handle
;
HPROFILE
handle
;
...
@@ -672,7 +672,7 @@ static void test_OpenColorProfileA()
...
@@ -672,7 +672,7 @@ static void test_OpenColorProfileA()
}
}
}
}
static
void
test_OpenColorProfileW
()
static
void
test_OpenColorProfileW
(
void
)
{
{
PROFILE
profile
;
PROFILE
profile
;
HPROFILE
handle
;
HPROFILE
handle
;
...
@@ -722,7 +722,7 @@ static void test_OpenColorProfileW()
...
@@ -722,7 +722,7 @@ static void test_OpenColorProfileW()
}
}
}
}
static
void
test_SetColorProfileElement
()
static
void
test_SetColorProfileElement
(
void
)
{
{
if
(
testprofile
)
if
(
testprofile
)
{
{
...
@@ -780,7 +780,7 @@ static void test_SetColorProfileElement()
...
@@ -780,7 +780,7 @@ static void test_SetColorProfileElement()
}
}
}
}
static
void
test_SetColorProfileHeader
()
static
void
test_SetColorProfileHeader
(
void
)
{
{
if
(
testprofile
)
if
(
testprofile
)
{
{
...
@@ -851,7 +851,7 @@ static void test_SetColorProfileHeader()
...
@@ -851,7 +851,7 @@ static void test_SetColorProfileHeader()
}
}
}
}
static
void
test_UninstallColorProfileA
()
static
void
test_UninstallColorProfileA
(
void
)
{
{
BOOL
ret
;
BOOL
ret
;
...
@@ -893,7 +893,7 @@ static void test_UninstallColorProfileA()
...
@@ -893,7 +893,7 @@ static void test_UninstallColorProfileA()
}
}
}
}
static
void
test_UninstallColorProfileW
()
static
void
test_UninstallColorProfileW
(
void
)
{
{
BOOL
ret
;
BOOL
ret
;
...
...
dlls/msi/action.c
View file @
ac6f562b
...
@@ -2530,7 +2530,7 @@ static LPWSTR resolve_keypath( MSIPACKAGE* package, INT
...
@@ -2530,7 +2530,7 @@ static LPWSTR resolve_keypath( MSIPACKAGE* package, INT
return
NULL
;
return
NULL
;
}
}
static
HKEY
openSharedDLLsKey
()
static
HKEY
openSharedDLLsKey
(
void
)
{
{
HKEY
hkey
=
0
;
HKEY
hkey
=
0
;
static
const
WCHAR
path
[]
=
static
const
WCHAR
path
[]
=
...
...
dlls/msi/tests/db.c
View file @
ac6f562b
...
@@ -222,7 +222,7 @@ static UINT try_insert_query( MSIHANDLE hdb, LPCSTR szQuery )
...
@@ -222,7 +222,7 @@ static UINT try_insert_query( MSIHANDLE hdb, LPCSTR szQuery )
return
r
;
return
r
;
}
}
static
void
test_msibadqueries
()
static
void
test_msibadqueries
(
void
)
{
{
const
char
*
msifile
=
"winetest.msi"
;
const
char
*
msifile
=
"winetest.msi"
;
MSIHANDLE
hdb
=
0
;
MSIHANDLE
hdb
=
0
;
...
...
dlls/msvcrt/tests/headers.c
View file @
ac6f562b
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
#define CHECK_DEF(n,d1,d2) ok(d1 == d2, "Defines (MSVCRT_)%s are different: '%d' vs. '%d'\n", n, d1, d2)
#define CHECK_DEF(n,d1,d2) ok(d1 == d2, "Defines (MSVCRT_)%s are different: '%d' vs. '%d'\n", n, d1, d2)
/************* Checking types ***************/
/************* Checking types ***************/
void
test_types
()
void
test_types
(
void
)
{
{
CHECK_TYPE
(
wchar_t
);
CHECK_TYPE
(
wchar_t
);
CHECK_TYPE
(
wint_t
);
CHECK_TYPE
(
wint_t
);
...
@@ -97,7 +97,7 @@ void test_types()
...
@@ -97,7 +97,7 @@ void test_types()
}
}
/************* Checking structs ***************/
/************* Checking structs ***************/
void
test_structs
()
void
test_structs
(
void
)
{
{
CHECK_STRUCT
(
tm
);
CHECK_STRUCT
(
tm
);
CHECK_FIELD
(
tm
,
tm_sec
);
CHECK_FIELD
(
tm
,
tm_sec
);
...
@@ -294,7 +294,7 @@ void test_structs()
...
@@ -294,7 +294,7 @@ void test_structs()
}
}
/************* Checking defines ***************/
/************* Checking defines ***************/
void
test_defines
()
void
test_defines
(
void
)
{
{
CHECK_DEF
(
"WEOF"
,
WEOF
,
MSVCRT_WEOF
);
CHECK_DEF
(
"WEOF"
,
WEOF
,
MSVCRT_WEOF
);
CHECK_DEF
(
"EOF"
,
EOF
,
MSVCRT_EOF
);
CHECK_DEF
(
"EOF"
,
EOF
,
MSVCRT_EOF
);
...
...
dlls/ntdll/tests/large_int.c
View file @
ac6f562b
...
@@ -35,7 +35,7 @@ static NTSTATUS (WINAPI *pRtlLargeIntegerToChar)(ULONGLONG *, ULONG, ULONG, PCHA
...
@@ -35,7 +35,7 @@ static NTSTATUS (WINAPI *pRtlLargeIntegerToChar)(ULONGLONG *, ULONG, ULONG, PCHA
static
NTSTATUS
(
WINAPI
*
pRtlUnicodeStringToAnsiString
)(
STRING
*
,
const
UNICODE_STRING
*
,
BOOLEAN
);
static
NTSTATUS
(
WINAPI
*
pRtlUnicodeStringToAnsiString
)(
STRING
*
,
const
UNICODE_STRING
*
,
BOOLEAN
);
static
void
InitFunctionPtrs
()
static
void
InitFunctionPtrs
(
void
)
{
{
hntdll
=
LoadLibraryA
(
"ntdll.dll"
);
hntdll
=
LoadLibraryA
(
"ntdll.dll"
);
ok
(
hntdll
!=
0
,
"LoadLibrary failed
\n
"
);
ok
(
hntdll
!=
0
,
"LoadLibrary failed
\n
"
);
...
...
dlls/ntdll/tests/reg.c
View file @
ac6f562b
...
@@ -341,7 +341,7 @@ static void test_RtlCheckRegistryKey(void)
...
@@ -341,7 +341,7 @@ static void test_RtlCheckRegistryKey(void)
ok
(
status
==
STATUS_SUCCESS
,
"RtlCheckRegistryKey with RTL_REGISTRY_ABSOLUTE and RTL_REGISTRY_OPTIONAL: 0x%08lx
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"RtlCheckRegistryKey with RTL_REGISTRY_ABSOLUTE and RTL_REGISTRY_OPTIONAL: 0x%08lx
\n
"
,
status
);
}
}
static
void
test_NtDeleteKey
()
static
void
test_NtDeleteKey
(
void
)
{
{
NTSTATUS
status
;
NTSTATUS
status
;
HANDLE
hkey
;
HANDLE
hkey
;
...
...
dlls/ole32/compobj.c
View file @
ac6f562b
...
@@ -197,7 +197,7 @@ static void COMPOBJ_UninitProcess( void )
...
@@ -197,7 +197,7 @@ static void COMPOBJ_UninitProcess( void )
UnregisterClassW
(
wszAptWinClass
,
OLE32_hInstance
);
UnregisterClassW
(
wszAptWinClass
,
OLE32_hInstance
);
}
}
static
void
COM_TlsDestroy
()
static
void
COM_TlsDestroy
(
void
)
{
{
struct
oletls
*
info
=
NtCurrentTeb
()
->
ReservedForOle
;
struct
oletls
*
info
=
NtCurrentTeb
()
->
ReservedForOle
;
if
(
info
)
if
(
info
)
...
...
dlls/ole32/ifs.c
View file @
ac6f562b
...
@@ -501,7 +501,7 @@ static void WINAPI IMallocSpy_fnPostHeapMinimize(LPMALLOCSPY iface)
...
@@ -501,7 +501,7 @@ static void WINAPI IMallocSpy_fnPostHeapMinimize(LPMALLOCSPY iface)
TRACE
(
"(%p)->()
\n
"
,
This
);
TRACE
(
"(%p)->()
\n
"
,
This
);
}
}
static
void
MallocSpyDumpLeaks
()
{
static
void
MallocSpyDumpLeaks
(
void
)
{
TRACE
(
"leaks: %lu
\n
"
,
Malloc32
.
SpyedAllocationsLeft
);
TRACE
(
"leaks: %lu
\n
"
,
Malloc32
.
SpyedAllocationsLeft
);
}
}
...
...
dlls/ole32/tests/marshal.c
View file @
ac6f562b
...
@@ -37,7 +37,7 @@ HRESULT (WINAPI * pCoInitializeEx)(LPVOID lpReserved, DWORD dwCoInit);
...
@@ -37,7 +37,7 @@ HRESULT (WINAPI * pCoInitializeEx)(LPVOID lpReserved, DWORD dwCoInit);
#define ok_no_locks() ok(cLocks == 0, "Number of locks should be 0, but actually is %ld\n", cLocks)
#define ok_no_locks() ok(cLocks == 0, "Number of locks should be 0, but actually is %ld\n", cLocks)
#define ok_ole_success(hr, func) ok(hr == S_OK, #func " failed with error 0x%08lx\n", hr)
#define ok_ole_success(hr, func) ok(hr == S_OK, #func " failed with error 0x%08lx\n", hr)
static
void
test_CoGetPSClsid
()
static
void
test_CoGetPSClsid
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
CLSID
clsid
;
CLSID
clsid
;
...
@@ -60,12 +60,12 @@ static void test_CoGetPSClsid()
...
@@ -60,12 +60,12 @@ static void test_CoGetPSClsid()
static
const
LARGE_INTEGER
ullZero
;
static
const
LARGE_INTEGER
ullZero
;
static
LONG
cLocks
;
static
LONG
cLocks
;
static
void
LockModule
()
static
void
LockModule
(
void
)
{
{
InterlockedIncrement
(
&
cLocks
);
InterlockedIncrement
(
&
cLocks
);
}
}
static
void
UnlockModule
()
static
void
UnlockModule
(
void
)
{
{
InterlockedDecrement
(
&
cLocks
);
InterlockedDecrement
(
&
cLocks
);
}
}
...
@@ -273,7 +273,7 @@ static void end_host_object(DWORD tid, HANDLE thread)
...
@@ -273,7 +273,7 @@ static void end_host_object(DWORD tid, HANDLE thread)
/* tests failure case of interface not having a marshaler specified in the
/* tests failure case of interface not having a marshaler specified in the
* registry */
* registry */
static
void
test_no_marshaler
()
static
void
test_no_marshaler
(
void
)
{
{
IStream
*
pStream
;
IStream
*
pStream
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -293,7 +293,7 @@ static void test_no_marshaler()
...
@@ -293,7 +293,7 @@ static void test_no_marshaler()
}
}
/* tests normal marshal and then release without unmarshaling */
/* tests normal marshal and then release without unmarshaling */
static
void
test_normal_marshal_and_release
()
static
void
test_normal_marshal_and_release
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -316,7 +316,7 @@ static void test_normal_marshal_and_release()
...
@@ -316,7 +316,7 @@ static void test_normal_marshal_and_release()
}
}
/* tests success case of a same-thread marshal and unmarshal */
/* tests success case of a same-thread marshal and unmarshal */
static
void
test_normal_marshal_and_unmarshal
()
static
void
test_normal_marshal_and_unmarshal
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -344,7 +344,7 @@ static void test_normal_marshal_and_unmarshal()
...
@@ -344,7 +344,7 @@ static void test_normal_marshal_and_unmarshal()
}
}
/* tests failure case of unmarshaling a freed object */
/* tests failure case of unmarshaling a freed object */
static
void
test_marshal_and_unmarshal_invalid
()
static
void
test_marshal_and_unmarshal_invalid
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -387,7 +387,7 @@ static void test_marshal_and_unmarshal_invalid()
...
@@ -387,7 +387,7 @@ static void test_marshal_and_unmarshal_invalid()
}
}
/* tests success case of an interthread marshal */
/* tests success case of an interthread marshal */
static
void
test_interthread_marshal_and_unmarshal
()
static
void
test_interthread_marshal_and_unmarshal
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -418,7 +418,7 @@ static void test_interthread_marshal_and_unmarshal()
...
@@ -418,7 +418,7 @@ static void test_interthread_marshal_and_unmarshal()
}
}
/* tests that stubs are released when the containing apartment is destroyed */
/* tests that stubs are released when the containing apartment is destroyed */
static
void
test_marshal_stub_apartment_shutdown
()
static
void
test_marshal_stub_apartment_shutdown
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -451,7 +451,7 @@ static void test_marshal_stub_apartment_shutdown()
...
@@ -451,7 +451,7 @@ static void test_marshal_stub_apartment_shutdown()
}
}
/* tests that proxies are released when the containing apartment is destroyed */
/* tests that proxies are released when the containing apartment is destroyed */
static
void
test_marshal_proxy_apartment_shutdown
()
static
void
test_marshal_proxy_apartment_shutdown
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -488,7 +488,7 @@ static void test_marshal_proxy_apartment_shutdown()
...
@@ -488,7 +488,7 @@ static void test_marshal_proxy_apartment_shutdown()
}
}
/* tests that proxies are released when the containing mta apartment is destroyed */
/* tests that proxies are released when the containing mta apartment is destroyed */
static
void
test_marshal_proxy_mta_apartment_shutdown
()
static
void
test_marshal_proxy_mta_apartment_shutdown
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -555,7 +555,7 @@ static DWORD CALLBACK no_couninitialize_proc(LPVOID p)
...
@@ -555,7 +555,7 @@ static DWORD CALLBACK no_couninitialize_proc(LPVOID p)
}
}
/* tests apartment that an apartment is released if the owning thread exits */
/* tests apartment that an apartment is released if the owning thread exits */
static
void
test_no_couninitialize
()
static
void
test_no_couninitialize
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -600,7 +600,7 @@ static void test_no_couninitialize()
...
@@ -600,7 +600,7 @@ static void test_no_couninitialize()
}
}
/* tests success case of a same-thread table-weak marshal, unmarshal, unmarshal */
/* tests success case of a same-thread table-weak marshal, unmarshal, unmarshal */
static
void
test_tableweak_marshal_and_unmarshal_twice
()
static
void
test_tableweak_marshal_and_unmarshal_twice
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -641,7 +641,7 @@ static void test_tableweak_marshal_and_unmarshal_twice()
...
@@ -641,7 +641,7 @@ static void test_tableweak_marshal_and_unmarshal_twice()
}
}
/* tests releasing after unmarshaling one object */
/* tests releasing after unmarshaling one object */
static
void
test_tableweak_marshal_releasedata1
()
static
void
test_tableweak_marshal_releasedata1
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -691,7 +691,7 @@ static void test_tableweak_marshal_releasedata1()
...
@@ -691,7 +691,7 @@ static void test_tableweak_marshal_releasedata1()
}
}
/* tests releasing after unmarshaling one object */
/* tests releasing after unmarshaling one object */
static
void
test_tableweak_marshal_releasedata2
()
static
void
test_tableweak_marshal_releasedata2
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -730,7 +730,7 @@ static void test_tableweak_marshal_releasedata2()
...
@@ -730,7 +730,7 @@ static void test_tableweak_marshal_releasedata2()
}
}
/* tests success case of a same-thread table-strong marshal, unmarshal, unmarshal */
/* tests success case of a same-thread table-strong marshal, unmarshal, unmarshal */
static
void
test_tablestrong_marshal_and_unmarshal_twice
()
static
void
test_tablestrong_marshal_and_unmarshal_twice
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -779,7 +779,7 @@ static void test_tablestrong_marshal_and_unmarshal_twice()
...
@@ -779,7 +779,7 @@ static void test_tablestrong_marshal_and_unmarshal_twice()
}
}
/* tests CoLockObjectExternal */
/* tests CoLockObjectExternal */
static
void
test_lock_object_external
()
static
void
test_lock_object_external
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -808,7 +808,7 @@ static void test_lock_object_external()
...
@@ -808,7 +808,7 @@ static void test_lock_object_external()
}
}
/* tests disconnecting stubs */
/* tests disconnecting stubs */
static
void
test_disconnect_stub
()
static
void
test_disconnect_stub
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -837,7 +837,7 @@ static void test_disconnect_stub()
...
@@ -837,7 +837,7 @@ static void test_disconnect_stub()
}
}
/* tests failure case of a same-thread marshal and unmarshal twice */
/* tests failure case of a same-thread marshal and unmarshal twice */
static
void
test_normal_marshal_and_unmarshal_twice
()
static
void
test_normal_marshal_and_unmarshal_twice
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -874,7 +874,7 @@ static void test_normal_marshal_and_unmarshal_twice()
...
@@ -874,7 +874,7 @@ static void test_normal_marshal_and_unmarshal_twice()
}
}
/* tests success case of marshaling and unmarshaling an HRESULT */
/* tests success case of marshaling and unmarshaling an HRESULT */
static
void
test_hresult_marshaling
()
static
void
test_hresult_marshaling
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
HRESULT
hr_marshaled
=
0
;
HRESULT
hr_marshaled
=
0
;
...
@@ -927,7 +927,7 @@ static DWORD CALLBACK bad_thread_proc(LPVOID p)
...
@@ -927,7 +927,7 @@ static DWORD CALLBACK bad_thread_proc(LPVOID p)
}
}
/* tests failure case of a using a proxy in the wrong apartment */
/* tests failure case of a using a proxy in the wrong apartment */
static
void
test_proxy_used_in_wrong_thread
()
static
void
test_proxy_used_in_wrong_thread
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -1047,7 +1047,7 @@ static const IMessageFilterVtbl MessageFilter_Vtbl =
...
@@ -1047,7 +1047,7 @@ static const IMessageFilterVtbl MessageFilter_Vtbl =
static
IMessageFilter
MessageFilter
=
{
&
MessageFilter_Vtbl
};
static
IMessageFilter
MessageFilter
=
{
&
MessageFilter_Vtbl
};
static
void
test_message_filter
()
static
void
test_message_filter
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -1094,7 +1094,7 @@ static void test_message_filter()
...
@@ -1094,7 +1094,7 @@ static void test_message_filter()
}
}
/* test failure case of trying to unmarshal from bad stream */
/* test failure case of trying to unmarshal from bad stream */
static
void
test_bad_marshal_stream
()
static
void
test_bad_marshal_stream
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -1119,7 +1119,7 @@ static void test_bad_marshal_stream()
...
@@ -1119,7 +1119,7 @@ static void test_bad_marshal_stream()
}
}
/* tests that proxies implement certain interfaces */
/* tests that proxies implement certain interfaces */
static
void
test_proxy_interfaces
()
static
void
test_proxy_interfaces
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
=
NULL
;
IStream
*
pStream
=
NULL
;
...
@@ -1273,7 +1273,7 @@ static LRESULT CALLBACK window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
...
@@ -1273,7 +1273,7 @@ static LRESULT CALLBACK window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
}
}
}
}
static
void
test_message_reentrancy
()
static
void
test_message_reentrancy
(
void
)
{
{
WNDCLASS
wndclass
;
WNDCLASS
wndclass
;
MSG
msg
;
MSG
msg
;
...
@@ -1540,7 +1540,7 @@ static void test_out_of_process_com()
...
@@ -1540,7 +1540,7 @@ static void test_out_of_process_com()
}
}
#endif
#endif
static
void
test_ROT
()
static
void
test_ROT
(
void
)
{
{
static
const
WCHAR
wszFileName
[]
=
{
'B'
,
'E'
,
'2'
,
'0'
,
'E'
,
'2'
,
'F'
,
'5'
,
'-'
,
static
const
WCHAR
wszFileName
[]
=
{
'B'
,
'E'
,
'2'
,
'0'
,
'E'
,
'2'
,
'F'
,
'5'
,
'-'
,
'1'
,
'9'
,
'0'
,
'3'
,
'-'
,
'4'
,
'A'
,
'A'
,
'E'
,
'-'
,
'B'
,
'1'
,
'A'
,
'F'
,
'-'
,
'1'
,
'9'
,
'0'
,
'3'
,
'-'
,
'4'
,
'A'
,
'A'
,
'E'
,
'-'
,
'B'
,
'1'
,
'A'
,
'F'
,
'-'
,
...
...
dlls/ole32/tests/propvariant.c
View file @
ac6f562b
...
@@ -126,7 +126,7 @@ static const char* wine_vtypes[VT_CLSID+1] =
...
@@ -126,7 +126,7 @@ static const char* wine_vtypes[VT_CLSID+1] =
"VT_STREAMED_OBJECT"
,
"VT_STORED_OBJECT"
,
"VT_BLOB_OBJECT"
,
"VT_CF"
,
"VT_CLSID"
"VT_STREAMED_OBJECT"
,
"VT_STORED_OBJECT"
,
"VT_BLOB_OBJECT"
,
"VT_CF"
,
"VT_CLSID"
};
};
static
void
test_validtypes
()
static
void
test_validtypes
(
void
)
{
{
PROPVARIANT
propvar
;
PROPVARIANT
propvar
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -197,7 +197,7 @@ static void test_validtypes()
...
@@ -197,7 +197,7 @@ static void test_validtypes()
}
}
}
}
static
void
test_copy
()
static
void
test_copy
(
void
)
{
{
static
const
char
szTestString
[]
=
"Test String"
;
static
const
char
szTestString
[]
=
"Test String"
;
static
const
WCHAR
wszTestString
[]
=
{
'T'
,
'e'
,
's'
,
't'
,
' '
,
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
wszTestString
[]
=
{
'T'
,
'e'
,
's'
,
't'
,
' '
,
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
...
...
dlls/oleaut32/tests/safearray.c
View file @
ac6f562b
...
@@ -85,7 +85,7 @@ typedef struct IRecordInfoImpl
...
@@ -85,7 +85,7 @@ typedef struct IRecordInfoImpl
static
const
IRecordInfoVtbl
IRecordInfoImpl_VTable
;
static
const
IRecordInfoVtbl
IRecordInfoImpl_VTable
;
static
IRecordInfoImpl
*
IRecordInfoImpl_Construct
()
static
IRecordInfoImpl
*
IRecordInfoImpl_Construct
(
void
)
{
{
IRecordInfoImpl
*
rec
;
IRecordInfoImpl
*
rec
;
...
...
dlls/qcap/qcap_main.c
View file @
ac6f562b
...
@@ -171,7 +171,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
...
@@ -171,7 +171,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
/***********************************************************************
/***********************************************************************
* DllRegisterServer (QCAP.@)
* DllRegisterServer (QCAP.@)
*/
*/
HRESULT
WINAPI
QCAP_DllRegisterServer
()
HRESULT
WINAPI
QCAP_DllRegisterServer
(
void
)
{
{
TRACE
(
"()
\n
"
);
TRACE
(
"()
\n
"
);
...
...
dlls/quartz/tests/filtergraph.c
View file @
ac6f562b
...
@@ -31,13 +31,13 @@ static const WCHAR file[] = {'t','e','s','t','.','a','v','i',0};
...
@@ -31,13 +31,13 @@ static const WCHAR file[] = {'t','e','s','t','.','a','v','i',0};
IGraphBuilder
*
pgraph
;
IGraphBuilder
*
pgraph
;
static
int
createfiltergraph
()
static
int
createfiltergraph
(
void
)
{
{
return
S_OK
==
CoCreateInstance
(
return
S_OK
==
CoCreateInstance
(
&
CLSID_FilterGraph
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IGraphBuilder
,
(
LPVOID
*
)
&
pgraph
);
&
CLSID_FilterGraph
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IGraphBuilder
,
(
LPVOID
*
)
&
pgraph
);
}
}
static
void
renderfile
()
static
void
renderfile
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
...
@@ -45,7 +45,7 @@ static void renderfile()
...
@@ -45,7 +45,7 @@ static void renderfile()
ok
(
hr
==
S_OK
,
"RenderFile returned: %lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"RenderFile returned: %lx
\n
"
,
hr
);
}
}
static
void
rungraph
()
static
void
rungraph
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
IMediaControl
*
pmc
;
IMediaControl
*
pmc
;
...
@@ -77,7 +77,7 @@ static void rungraph()
...
@@ -77,7 +77,7 @@ static void rungraph()
ok
(
hr
==
1
,
"Releasing mediacontrol returned: %lx
\n
"
,
hr
);
ok
(
hr
==
1
,
"Releasing mediacontrol returned: %lx
\n
"
,
hr
);
}
}
static
void
releasefiltergraph
()
static
void
releasefiltergraph
(
void
)
{
{
HRESULT
hr
;
HRESULT
hr
;
...
...
dlls/shdocvw/shdocvw.h
View file @
ac6f562b
...
@@ -165,7 +165,7 @@ typedef struct
...
@@ -165,7 +165,7 @@ typedef struct
* Dll lifetime tracking declaration for shdocvw.dll
* Dll lifetime tracking declaration for shdocvw.dll
*/
*/
extern
LONG
SHDOCVW_refCount
;
extern
LONG
SHDOCVW_refCount
;
static
inline
void
SHDOCVW_LockModule
()
{
InterlockedIncrement
(
&
SHDOCVW_refCount
);
}
static
inline
void
SHDOCVW_LockModule
(
void
)
{
InterlockedIncrement
(
&
SHDOCVW_refCount
);
}
static
inline
void
SHDOCVW_UnlockModule
()
{
InterlockedDecrement
(
&
SHDOCVW_refCount
);
}
static
inline
void
SHDOCVW_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
SHDOCVW_refCount
);
}
#endif
/* __WINE_SHDOCVW_H */
#endif
/* __WINE_SHDOCVW_H */
dlls/shdocvw/shdocvw_main.c
View file @
ac6f562b
...
@@ -388,7 +388,7 @@ dlProc ( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -388,7 +388,7 @@ dlProc ( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
}
}
}
}
static
BOOL
SHDOCVW_TryDownloadMozillaControl
()
static
BOOL
SHDOCVW_TryDownloadMozillaControl
(
void
)
{
{
DWORD
r
;
DWORD
r
;
WCHAR
buf
[
0x100
];
WCHAR
buf
[
0x100
];
...
@@ -414,7 +414,7 @@ static BOOL SHDOCVW_TryDownloadMozillaControl()
...
@@ -414,7 +414,7 @@ static BOOL SHDOCVW_TryDownloadMozillaControl()
return
TRUE
;
return
TRUE
;
}
}
static
BOOL
SHDOCVW_TryLoadMozillaControl
()
static
BOOL
SHDOCVW_TryLoadMozillaControl
(
void
)
{
{
WCHAR
szPath
[
MAX_PATH
];
WCHAR
szPath
[
MAX_PATH
];
BOOL
bTried
=
FALSE
;
BOOL
bTried
=
FALSE
;
...
...
dlls/shell32/tests/shelllink.c
View file @
ac6f562b
...
@@ -83,7 +83,7 @@ static LPITEMIDLIST path_to_pidl(const char* path)
...
@@ -83,7 +83,7 @@ static LPITEMIDLIST path_to_pidl(const char* path)
* Test manipulation of an IShellLink's properties.
* Test manipulation of an IShellLink's properties.
*/
*/
static
void
test_get_set
()
static
void
test_get_set
(
void
)
{
{
HRESULT
r
;
HRESULT
r
;
IShellLinkA
*
sl
;
IShellLinkA
*
sl
;
...
@@ -459,7 +459,7 @@ static void check_lnk_(int line, const WCHAR* path, lnk_desc_t* desc)
...
@@ -459,7 +459,7 @@ static void check_lnk_(int line, const WCHAR* path, lnk_desc_t* desc)
IShellLinkA_Release
(
sl
);
IShellLinkA_Release
(
sl
);
}
}
static
void
test_load_save
()
static
void
test_load_save
(
void
)
{
{
lnk_desc_t
desc
;
lnk_desc_t
desc
;
char
mypath
[
MAX_PATH
];
char
mypath
[
MAX_PATH
];
...
...
dlls/shlwapi/tests/clist.c
View file @
ac6f562b
...
@@ -212,7 +212,7 @@ static HRESULT (WINAPI *pSHLWAPI_213)(_IDummyStream*);
...
@@ -212,7 +212,7 @@ static HRESULT (WINAPI *pSHLWAPI_213)(_IDummyStream*);
static
HRESULT
(
WINAPI
*
pSHLWAPI_214
)(
_IDummyStream
*
,
ULARGE_INTEGER
*
);
static
HRESULT
(
WINAPI
*
pSHLWAPI_214
)(
_IDummyStream
*
,
ULARGE_INTEGER
*
);
static
void
InitFunctionPtrs
()
static
void
InitFunctionPtrs
(
void
)
{
{
SHLWAPI_hshlwapi
=
LoadLibraryA
(
"shlwapi.dll"
);
SHLWAPI_hshlwapi
=
LoadLibraryA
(
"shlwapi.dll"
);
ok
(
SHLWAPI_hshlwapi
!=
0
,
"LoadLibrary failed
\n
"
);
ok
(
SHLWAPI_hshlwapi
!=
0
,
"LoadLibrary failed
\n
"
);
...
...
dlls/shlwapi/tests/shreg.c
View file @
ac6f562b
...
@@ -321,7 +321,7 @@ static void test_SHCopyKey(void)
...
@@ -321,7 +321,7 @@ static void test_SHCopyKey(void)
RegCloseKey
(
hKeyDst
);
RegCloseKey
(
hKeyDst
);
}
}
static
void
test_SHDeleteKey
()
static
void
test_SHDeleteKey
(
void
)
{
{
HKEY
hKeyTest
,
hKeyS
;
HKEY
hKeyTest
,
hKeyS
;
DWORD
dwRet
;
DWORD
dwRet
;
...
...
dlls/user/combo.c
View file @
ac6f562b
...
@@ -112,7 +112,7 @@ const struct builtin_class_descr COMBO_builtin_class =
...
@@ -112,7 +112,7 @@ const struct builtin_class_descr COMBO_builtin_class =
*
*
* Load combo button bitmap.
* Load combo button bitmap.
*/
*/
static
BOOL
COMBO_Init
()
static
BOOL
COMBO_Init
(
void
)
{
{
HDC
hDC
;
HDC
hDC
;
...
...
dlls/user/tests/edit.c
View file @
ac6f562b
...
@@ -472,7 +472,7 @@ static void test_edit_control_2(void)
...
@@ -472,7 +472,7 @@ static void test_edit_control_2(void)
DestroyWindow
(
hwndMain
);
DestroyWindow
(
hwndMain
);
}
}
static
void
ET2_check_change
()
{
static
void
ET2_check_change
(
void
)
{
char
szLocalString
[
MAXLEN
];
char
szLocalString
[
MAXLEN
];
/* This EN_UPDATE handler changes any 'foo' to 'bar'. */
/* This EN_UPDATE handler changes any 'foo' to 'bar'. */
GetWindowText
(
hwndET2
,
szLocalString
,
MAXLEN
);
GetWindowText
(
hwndET2
,
szLocalString
,
MAXLEN
);
...
...
dlls/wineps/afm.c
View file @
ac6f562b
...
@@ -248,7 +248,7 @@ SHORT PSDRV_CalcAvgCharWidth(const AFM *afm)
...
@@ -248,7 +248,7 @@ SHORT PSDRV_CalcAvgCharWidth(const AFM *afm)
*
*
*/
*/
static
BOOL
AddBuiltinAFMs
()
static
BOOL
AddBuiltinAFMs
(
void
)
{
{
const
AFM
*
const
*
afm
=
PSDRV_BuiltinAFMs
;
const
AFM
*
const
*
afm
=
PSDRV_BuiltinAFMs
;
...
...
dlls/winsock/tests/protocol.c
View file @
ac6f562b
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "wine/test.h"
#include "wine/test.h"
static
void
test_WSAEnumProtocolsA
()
static
void
test_WSAEnumProtocolsA
(
void
)
{
{
INT
ret
;
INT
ret
;
DWORD
len
=
0
;
DWORD
len
=
0
;
...
@@ -62,7 +62,7 @@ static void test_WSAEnumProtocolsA()
...
@@ -62,7 +62,7 @@ static void test_WSAEnumProtocolsA()
}
}
}
}
static
void
test_WSAEnumProtocolsW
()
static
void
test_WSAEnumProtocolsW
(
void
)
{
{
INT
ret
;
INT
ret
;
DWORD
len
=
0
;
DWORD
len
=
0
;
...
...
dlls/winspool/info.c
View file @
ac6f562b
...
@@ -3179,7 +3179,7 @@ static BOOL WINSPOOL_ComPortExists( LPCSTR name )
...
@@ -3179,7 +3179,7 @@ static BOOL WINSPOOL_ComPortExists( LPCSTR name )
return
TRUE
;
return
TRUE
;
}
}
static
DWORD
WINSPOOL_CountSerialPorts
()
static
DWORD
WINSPOOL_CountSerialPorts
(
void
)
{
{
CHAR
name
[
6
];
CHAR
name
[
6
];
DWORD
n
=
0
,
i
;
DWORD
n
=
0
,
i
;
...
...
dlls/wintab32/context.c
View file @
ac6f562b
...
@@ -120,7 +120,7 @@ static LPOPENCONTEXT TABLET_FindOpenContext(HCTX hCtx)
...
@@ -120,7 +120,7 @@ static LPOPENCONTEXT TABLET_FindOpenContext(HCTX hCtx)
return
NULL
;
return
NULL
;
}
}
static
void
LoadTablet
()
static
void
LoadTablet
(
void
)
{
{
TRACE
(
"Initilizing the tablet to hwnd %p
\n
"
,
hwndDefault
);
TRACE
(
"Initilizing the tablet to hwnd %p
\n
"
,
hwndDefault
);
gLoaded
=
TRUE
;
gLoaded
=
TRUE
;
...
...
programs/notepad/dialog.h
View file @
ac6f562b
...
@@ -51,7 +51,7 @@ VOID DIALOG_HelpAboutWine(VOID);
...
@@ -51,7 +51,7 @@ VOID DIALOG_HelpAboutWine(VOID);
VOID
DIALOG_TimeDate
(
VOID
);
VOID
DIALOG_TimeDate
(
VOID
);
/* utility functions */
/* utility functions */
VOID
ShowLastError
();
VOID
ShowLastError
(
void
);
BOOL
FileExists
(
LPCWSTR
szFilename
);
BOOL
FileExists
(
LPCWSTR
szFilename
);
BOOL
DoCloseFile
(
void
);
BOOL
DoCloseFile
(
void
);
void
DoOpenFile
(
LPCWSTR
szFileName
);
void
DoOpenFile
(
LPCWSTR
szFileName
);
programs/progman/grpfile.c
View file @
ac6f562b
...
@@ -451,7 +451,7 @@ BYTE GRPFILE_checksum_last_byte;
...
@@ -451,7 +451,7 @@ BYTE GRPFILE_checksum_last_byte;
* GRPFILE_InitChecksum
* GRPFILE_InitChecksum
*/
*/
static
void
GRPFILE_InitChecksum
()
static
void
GRPFILE_InitChecksum
(
void
)
{
{
GRPFILE_checksum
=
0
;
GRPFILE_checksum
=
0
;
GRPFILE_checksum_half_word
=
0
;
GRPFILE_checksum_half_word
=
0
;
...
@@ -462,7 +462,7 @@ static void GRPFILE_InitChecksum()
...
@@ -462,7 +462,7 @@ static void GRPFILE_InitChecksum()
* GRPFILE_GetChecksum
* GRPFILE_GetChecksum
*/
*/
static
UINT16
GRPFILE_GetChecksum
()
static
UINT16
GRPFILE_GetChecksum
(
void
)
{
{
return
GRPFILE_checksum
;
return
GRPFILE_checksum
;
}
}
...
...
tools/winegcc/winegcc.c
View file @
ac6f562b
...
@@ -163,7 +163,7 @@ struct options
...
@@ -163,7 +163,7 @@ struct options
strarray
*
files
;
strarray
*
files
;
};
};
static
void
clean_temp_files
()
static
void
clean_temp_files
(
void
)
{
{
int
i
;
int
i
;
...
...
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