[WIN32K]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 10 Mar 2015 00:08:54 +0000 (00:08 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 10 Mar 2015 00:08:54 +0000 (00:08 +0000)
Fix some annotations

svn path=/trunk/; revision=66635

reactos/win32ss/gdi/eng/device.c
reactos/win32ss/gdi/ntgdi/gdidebug.h
reactos/win32ss/include/ntuser.h
reactos/win32ss/user/ntuser/cursoricon.c
reactos/win32ss/user/ntuser/useratom.c

index d5b65cc..c7e91e4 100644 (file)
@@ -212,7 +212,7 @@ EngpRegisterGraphicsDevice(
                   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 @@ EngFileIoControl(
 /*
  * @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)
 {
index 15302e5..9d09a69 100644 (file)
 #define KeRosDumpStackFrames(Frames, Count)
 #endif
 
-NTSYSAPI
-ULONG
-APIENTRY
-RtlWalkFrameChain(
-    _Out_ PVOID *Callers,
-    _In_ ULONG Count,
-    _In_ ULONG Flags);
-
 ULONG
 NTAPI
 DbgCaptureStackBackTace(
index c2b688c..75f5c41 100644 (file)
@@ -2982,8 +2982,8 @@ BOOL
 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
index f8db31f..a525fb7 100644 (file)
@@ -395,15 +395,16 @@ IntCleanupCurIconCache(PPROCESSINFO Win32Process)
 /*
  * @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;
index 46d9832..b9cbf18 100644 (file)
@@ -91,8 +91,8 @@ IntAddGlobalAtom(LPWSTR lpBuffer, BOOL PinAtom)
  * \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(