Author: dgorbachev
Date: Mon Aug 24 22:09:58 2009
New Revision: 42926
URL:
http://svn.reactos.org/svn/reactos?rev=42926&view=rev
Log:
Sprinkle win32k with some explicit voids,
Modified:
trunk/reactos/subsystems/win32/win32k/include/accelerator.h
trunk/reactos/subsystems/win32/win32k/include/dc.h
trunk/reactos/subsystems/win32/win32k/include/error.h
trunk/reactos/subsystems/win32/win32k/include/focus.h
trunk/reactos/subsystems/win32/win32k/include/guicheck.h
trunk/reactos/subsystems/win32/win32k/include/hotkey.h
trunk/reactos/subsystems/win32/win32k/include/misc.h
trunk/reactos/subsystems/win32/win32k/include/ntuser.h
trunk/reactos/subsystems/win32/win32k/include/object.h
trunk/reactos/subsystems/win32/win32k/include/userfuncs.h
trunk/reactos/subsystems/win32/win32k/misc/err.c
trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c
trunk/reactos/subsystems/win32/win32k/ntuser/focus.c
trunk/reactos/subsystems/win32/win32k/ntuser/hotkey.c
trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c
trunk/reactos/subsystems/win32/win32k/ntuser/object.c
trunk/reactos/subsystems/win32/win32k/ntuser/windc.c
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
trunk/reactos/subsystems/win32/win32k/objects/device.c
trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c
Modified: trunk/reactos/subsystems/win32/win32k/include/accelerator.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/accelerator.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/accelerator.h [iso-8859-1] Mon Aug 24
22:09:58 2009
@@ -12,10 +12,10 @@
} ACCELERATOR_TABLE, *PACCELERATOR_TABLE;
NTSTATUS FASTCALL
-InitAcceleratorImpl();
+InitAcceleratorImpl(VOID);
NTSTATUS FASTCALL
-CleanupAcceleratorImpl();
+CleanupAcceleratorImpl(VOID);
PACCELERATOR_TABLE FASTCALL UserGetAccelObject(HACCEL);
Modified: trunk/reactos/subsystems/win32/win32k/include/dc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/dc.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/dc.h [iso-8859-1] Mon Aug 24 22:09:58
2009
@@ -233,7 +233,7 @@
}
BOOL FASTCALL
-IntPrepareDriverIfNeeded();
+IntPrepareDriverIfNeeded(VOID);
extern PDEVOBJ PrimarySurface;
#endif /* not __WIN32K_DC_H */
Modified: trunk/reactos/subsystems/win32/win32k/include/error.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/error.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/error.h [iso-8859-1] Mon Aug 24 22:09:58
2009
@@ -10,7 +10,7 @@
DWORD Status);
NTSTATUS FASTCALL
-GetLastNtError();
+GetLastNtError(VOID);
#endif /* _WIN32K_ERROR_H */
Modified: trunk/reactos/subsystems/win32/win32k/include/focus.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/focus.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/focus.h [iso-8859-1] Mon Aug 24 22:09:58
2009
@@ -5,17 +5,17 @@
* These functions take the window handles from current message queue.
*/
HWND FASTCALL
-IntGetCaptureWindow();
+IntGetCaptureWindow(VOID);
HWND FASTCALL
-IntGetFocusWindow();
+IntGetFocusWindow(VOID);
/*
* These functions take the window handles from current thread queue.
*/
HWND FASTCALL
-IntGetThreadFocusWindow();
-HWND APIENTRY IntGetCapture();
-HWND FASTCALL UserGetActiveWindow();
+IntGetThreadFocusWindow(VOID);
+HWND APIENTRY IntGetCapture(VOID);
+HWND FASTCALL UserGetActiveWindow(VOID);
BOOL FASTCALL
co_IntMouseActivateWindow(PWINDOW_OBJECT Window);
Modified: trunk/reactos/subsystems/win32/win32k/include/guicheck.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/guicheck.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/guicheck.h [iso-8859-1] Mon Aug 24
22:09:58 2009
@@ -2,8 +2,8 @@
#define _WIN32K_GUICHECK_H
BOOL FASTCALL co_IntGraphicsCheck(BOOL Create);
-BOOL FASTCALL IntCreatePrimarySurface();
-VOID FASTCALL IntDestroyPrimarySurface();
+BOOL FASTCALL IntCreatePrimarySurface(VOID);
+VOID FASTCALL IntDestroyPrimarySurface(VOID);
NTSTATUS FASTCALL InitGuiCheckImpl (VOID);
Modified: trunk/reactos/subsystems/win32/win32k/include/hotkey.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/hotkey.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/hotkey.h [iso-8859-1] Mon Aug 24
22:09:58 2009
@@ -15,7 +15,7 @@
} HOT_KEY_ITEM, *PHOT_KEY_ITEM;
NTSTATUS FASTCALL
-InitHotkeyImpl();
+InitHotkeyImpl(VOID);
//NTSTATUS FASTCALL
//CleanupHotKeys(PWINSTATION_OBJECT WinStaObject);
Modified: trunk/reactos/subsystems/win32/win32k/include/misc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/misc.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/misc.h [iso-8859-1] Mon Aug 24 22:09:58
2009
@@ -24,7 +24,7 @@
extern HGDIOBJ StockObjects[];
extern SHORT gusLanguageID;
-SHORT FASTCALL IntGdiGetLanguageID();
+SHORT FASTCALL IntGdiGetLanguageID(VOID);
DWORD APIENTRY IntGetQueueStatus(BOOL ClearChanges);
VOID FASTCALL IntUserManualGuiCheck(LONG Check);
PVOID APIENTRY HackSecureVirtualMemory(IN PVOID,IN SIZE_T,IN ULONG,OUT PVOID *);
Modified: trunk/reactos/subsystems/win32/win32k/include/ntuser.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/ntuser.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/ntuser.h [iso-8859-1] Mon Aug 24
22:09:58 2009
@@ -17,8 +17,8 @@
VOID FASTCALL UserEnterShared(VOID);
VOID FASTCALL UserEnterExclusive(VOID);
VOID FASTCALL UserLeave(VOID);
-BOOL FASTCALL UserIsEntered();
-BOOL FASTCALL UserIsEnteredExclusive();
+BOOL FASTCALL UserIsEntered(VOID);
+BOOL FASTCALL UserIsEnteredExclusive(VOID);
#endif /* _WIN32K_NTUSER_H */
Modified: trunk/reactos/subsystems/win32/win32k/include/object.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/object.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/object.h [iso-8859-1] Mon Aug 24
22:09:58 2009
@@ -115,7 +115,7 @@
BOOL UserFreeHandle(PUSER_HANDLE_TABLE ht, HANDLE handle );
PVOID UserGetNextHandle(PUSER_HANDLE_TABLE ht, HANDLE* handle, USER_OBJECT_TYPE type );
PUSER_HANDLE_ENTRY handle_to_entry(PUSER_HANDLE_TABLE ht, HANDLE handle );
-BOOL FASTCALL UserCreateHandleTable();
+BOOL FASTCALL UserCreateHandleTable(VOID);
VOID UserInitHandleTable(PUSER_HANDLE_TABLE ht, PVOID mem, ULONG bytes);
Modified: trunk/reactos/subsystems/win32/win32k/include/userfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/userfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/userfuncs.h [iso-8859-1] Mon Aug 24
22:09:58 2009
@@ -53,7 +53,7 @@
/*************** FOCUS.C ***************/
-HWND FASTCALL UserGetActiveWindow();
+HWND FASTCALL UserGetActiveWindow(VOID);
HWND FASTCALL UserGetForegroundWindow(VOID);
@@ -125,7 +125,7 @@
VOID FASTCALL
co_DestroyThreadWindows(struct _ETHREAD *Thread);
-HWND FASTCALL UserGetShellWindow();
+HWND FASTCALL UserGetShellWindow(VOID);
HWND FASTCALL UserGetWindow(HWND hWnd, UINT Relationship);
Modified: trunk/reactos/subsystems/win32/win32k/misc/err.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/mi…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/misc/err.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/misc/err.c [iso-8859-1] Mon Aug 24 22:09:58
2009
@@ -50,7 +50,7 @@
}
NTSTATUS FASTCALL
-GetLastNtError()
+GetLastNtError(VOID)
{
PTEB Teb = PsGetCurrentThread()->Tcb.Teb;
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c [iso-8859-1] Mon Aug 24
22:09:58 2009
@@ -54,7 +54,7 @@
return wce;
}
-VOID FASTCALL printChain()
+VOID FASTCALL printChain(VOID)
{
/*test*/
PCLIPBOARDCHAINELEMENT wce2 = WindowsChain;
@@ -148,7 +148,7 @@
/* counts how many distinct format were are in the clipboard */
DWORD FASTCALL
-IntCountClipboardFormats()
+IntCountClipboardFormats(VOID)
{
DWORD ret = 0;
PCLIPBOARDELEMENT ce = ClipboardData;
@@ -221,7 +221,7 @@
}
VOID FASTCALL
-IntEmptyClipboardData()
+IntEmptyClipboardData(VOID)
{
PCLIPBOARDELEMENT ce = ClipboardData;
PCLIPBOARDELEMENT tmp;
@@ -322,7 +322,7 @@
}
VOID FASTCALL
-freeSynthesizedData()
+freeSynthesizedData(VOID)
{
ExFreePool(synthesizedData);
}
@@ -330,7 +330,7 @@
/*==============================================================*/
BOOL FASTCALL
-intIsClipboardOpenByMe()
+intIsClipboardOpenByMe(VOID)
{
/* check if we open the clipboard */
if (ClipboardThread && ClipboardThread == PsGetCurrentThreadWin32Thread())
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/focus.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/focus.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/focus.c [iso-8859-1] Mon Aug 24 22:09:58
2009
@@ -24,21 +24,21 @@
#include <debug.h>
HWND FASTCALL
-IntGetCaptureWindow()
+IntGetCaptureWindow(VOID)
{
PUSER_MESSAGE_QUEUE ForegroundQueue = IntGetFocusMessageQueue();
return ForegroundQueue != NULL ? ForegroundQueue->CaptureWindow : 0;
}
HWND FASTCALL
-IntGetFocusWindow()
+IntGetFocusWindow(VOID)
{
PUSER_MESSAGE_QUEUE ForegroundQueue = IntGetFocusMessageQueue();
return ForegroundQueue != NULL ? ForegroundQueue->FocusWindow : 0;
}
HWND FASTCALL
-IntGetThreadFocusWindow()
+IntGetThreadFocusWindow(VOID)
{
PTHREADINFO pti;
PUSER_MESSAGE_QUEUE ThreadQueue;
@@ -445,7 +445,7 @@
}
-HWND FASTCALL UserGetActiveWindow()
+HWND FASTCALL UserGetActiveWindow(VOID)
{
PTHREADINFO pti;
PUSER_MESSAGE_QUEUE ThreadQueue;
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/hotkey.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/hotkey.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/hotkey.c [iso-8859-1] Mon Aug 24 22:09:58
2009
@@ -53,7 +53,7 @@
/* FUNCTIONS *****************************************************************/
NTSTATUS FASTCALL
-InitHotkeyImpl()
+InitHotkeyImpl(VOID)
{
InitializeListHead(&gHotkeyList);
@@ -63,7 +63,7 @@
#if 0 //not used
NTSTATUS FASTCALL
-CleanupHotKeys()
+CleanupHotKeys(VOID)
{
return STATUS_SUCCESS;
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/misc.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/misc.c [iso-8859-1] Mon Aug 24 22:09:58
2009
@@ -16,7 +16,7 @@
SHORT
FASTCALL
-IntGdiGetLanguageID()
+IntGdiGetLanguageID(VOID)
{
HANDLE KeyHandle;
ULONG Size = sizeof(WCHAR) * (MAX_PATH + 12);
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c [iso-8859-1] Mon Aug 24 22:09:58
2009
@@ -180,13 +180,13 @@
RETURN
True if current thread owns the lock (possibly shared)
*/
-BOOL FASTCALL UserIsEntered()
+BOOL FASTCALL UserIsEntered(VOID)
{
return ExIsResourceAcquiredExclusiveLite(&UserLock)
|| ExIsResourceAcquiredSharedLite(&UserLock);
}
-BOOL FASTCALL UserIsEnteredExclusive()
+BOOL FASTCALL UserIsEnteredExclusive(VOID)
{
return ExIsResourceAcquiredExclusiveLite(&UserLock);
}
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/object.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/object.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/object.c [iso-8859-1] Mon Aug 24 22:09:58
2009
@@ -402,7 +402,7 @@
-BOOL FASTCALL UserCreateHandleTable()
+BOOL FASTCALL UserCreateHandleTable(VOID)
{
PVOID mem;
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/windc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/windc.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/windc.c [iso-8859-1] Mon Aug 24 22:09:58
2009
@@ -713,7 +713,7 @@
}
VOID FASTCALL
-DceEmptyCache()
+DceEmptyCache(VOID)
{
PDCE pDCE = FirstDce;
KeEnterCriticalRegion();
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Mon Aug 24 22:09:58
2009
@@ -3272,7 +3272,7 @@
* Status
* @implemented
*/
-HWND FASTCALL UserGetShellWindow()
+HWND FASTCALL UserGetShellWindow(VOID)
{
PWINSTATION_OBJECT WinStaObject;
HWND Ret;
Modified: trunk/reactos/subsystems/win32/win32k/objects/device.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/device.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/device.c [iso-8859-1] Mon Aug 24
22:09:58 2009
@@ -202,7 +202,7 @@
}
static BOOL FASTCALL
-IntPrepareDriver()
+IntPrepareDriver(VOID)
{
PFN_DrvEnableDriver GDEnableDriver;
DRVENABLEDATA DED;
@@ -437,13 +437,13 @@
}
BOOL FASTCALL
-IntPrepareDriverIfNeeded()
+IntPrepareDriverIfNeeded(VOID)
{
return (PrimarySurface.PreparedDriver ? TRUE : IntPrepareDriver());
}
static BOOL FASTCALL
-PrepareVideoPrt()
+PrepareVideoPrt(VOID)
{
PIRP Irp;
NTSTATUS Status;
@@ -499,7 +499,7 @@
BOOL FASTCALL
-IntCreatePrimarySurface()
+IntCreatePrimarySurface(VOID)
{
SIZEL SurfSize;
RECTL SurfaceRect;
@@ -573,7 +573,7 @@
}
VOID FASTCALL
-IntDestroyPrimarySurface()
+IntDestroyPrimarySurface(VOID)
{
BOOL calledFromUser;
Modified: trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c [iso-8859-1] Mon Aug 24
22:09:58 2009
@@ -196,7 +196,7 @@
ULONG
FASTCALL
-InterlockedPopFreeEntry()
+InterlockedPopFreeEntry(VOID)
{
ULONG idxFirst, idxNext, idxPrev;
PGDI_TABLE_ENTRY pEntry;