Author: tkreuzer
Date: Tue Mar 10 00:08:54 2015
New Revision: 66635
URL:
http://svn.reactos.org/svn/reactos?rev=66635&view=rev
Log:
[WIN32K]
Fix some annotations
Modified:
trunk/reactos/win32ss/gdi/eng/device.c
trunk/reactos/win32ss/gdi/ntgdi/gdidebug.h
trunk/reactos/win32ss/include/ntuser.h
trunk/reactos/win32ss/user/ntuser/cursoricon.c
trunk/reactos/win32ss/user/ntuser/useratom.c
Modified: trunk/reactos/win32ss/gdi/eng/device.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/eng/device.c?r…
==============================================================================
--- trunk/reactos/win32ss/gdi/eng/device.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/eng/device.c [iso-8859-1] Tue Mar 10 00:08:54 2015
@@ -212,7 +212,7 @@
pdm->dmBitsPerPel,
pdm->dmDisplayFrequency);
/* Compare with the default entry */
- if (!bModeMatch &&
+ if (!bModeMatch &&
pdm->dmBitsPerPel == pdmDefault->dmBitsPerPel &&
pdm->dmPelsWidth == pdmDefault->dmPelsWidth &&
pdm->dmPelsHeight == pdmDefault->dmPelsHeight)
@@ -438,13 +438,15 @@
/*
* @implemented
*/
-DWORD APIENTRY
+_Success_(return==0)
+DWORD
+APIENTRY
EngDeviceIoControl(
_In_ HANDLE hDevice,
_In_ DWORD dwIoControlCode,
- _In_opt_bytecount_(cjInBufferSize) LPVOID lpInBuffer,
+ _In_reads_bytes_opt_(cjInBufferSize) LPVOID lpInBuffer,
_In_ DWORD cjInBufferSize,
- _Out_opt_bytecap_(cjOutBufferSize) LPVOID lpOutBuffer,
+ _Out_writes_bytes_opt_(cjOutBufferSize) LPVOID lpOutBuffer,
_In_ DWORD cjOutBufferSize,
_Out_ LPDWORD lpBytesReturned)
{
Modified: trunk/reactos/win32ss/gdi/ntgdi/gdidebug.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/gdidebug…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/gdidebug.h [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/gdidebug.h [iso-8859-1] Tue Mar 10 00:08:54 2015
@@ -10,14 +10,6 @@
#define ASSERT_NOGDILOCKS()
#define KeRosDumpStackFrames(Frames, Count)
#endif
-
-NTSYSAPI
-ULONG
-APIENTRY
-RtlWalkFrameChain(
- _Out_ PVOID *Callers,
- _In_ ULONG Count,
- _In_ ULONG Flags);
ULONG
NTAPI
Modified: trunk/reactos/win32ss/include/ntuser.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/include/ntuser.h?r…
==============================================================================
--- trunk/reactos/win32ss/include/ntuser.h [iso-8859-1] (original)
+++ trunk/reactos/win32ss/include/ntuser.h [iso-8859-1] Tue Mar 10 00:08:54 2015
@@ -2982,8 +2982,8 @@
NTAPI
NtUserSetCursorIconData(
_In_ HCURSOR hCursor,
- _In_ PUNICODE_STRING pustrModule,
- _In_ PUNICODE_STRING puSrcName,
+ _In_opt_ PUNICODE_STRING pustrModule,
+ _In_opt_ PUNICODE_STRING puSrcName,
_In_ const CURSORDATA *pCursorData);
typedef struct _tagFINDEXISTINGCURICONPARAM
Modified: trunk/reactos/win32ss/user/ntuser/cursoricon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/cursor…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/cursoricon.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/cursoricon.c [iso-8859-1] Tue Mar 10 00:08:54 2015
@@ -395,15 +395,16 @@
/*
* @implemented
*/
+_Success_(return != FALSE)
BOOL
-APIENTRY
+NTAPI
NtUserGetIconInfo(
- _In_ HANDLE hCurIcon,
- _Out_opt_ PICONINFO IconInfo,
- _Out_opt_ PUNICODE_STRING lpModule, // Optional
- _Out_opt_ PUNICODE_STRING lpResName, // Optional
- _Out_opt_ LPDWORD pbpp, // Optional
- _In_ BOOL bInternal)
+ _In_ HANDLE hCurIcon,
+ _Out_opt_ PICONINFO IconInfo,
+ _Inout_opt_ PUNICODE_STRING lpModule,
+ _Inout_opt_ PUNICODE_STRING lpResName,
+ _Out_opt_ LPDWORD pbpp,
+ _In_ BOOL bInternal)
{
ICONINFO ii;
PCURICON_OBJECT CurIcon;
Modified: trunk/reactos/win32ss/user/ntuser/useratom.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/userat…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/useratom.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/useratom.c [iso-8859-1] Tue Mar 10 00:08:54 2015
@@ -91,8 +91,8 @@
* \note The function does not aquire any global lock, since synchronisation is
* handled by the RtlAtom function.
*/
-_Success_(return!=0)
-_At_(pustrName->Buffer, _Out_z_bytecap_post_bytecount_(pustrName->MaximumLength,
return*2+2))
+_Success_(return != 0)
+_At_(pustrName->Buffer, _Out_z_bytecap_post_bytecount_(pustrName->MaximumLength,
return * 2 + 2))
ULONG
APIENTRY
NtUserGetAtomName(