Uploaded image for project: 'ReactOS Test Suite'
  1. ReactOS Test Suite
  2. ROSTESTS-103

Several UINT variables are reciving negative INT values

    XMLWordPrintable

Details

    Description

      In several cases UINT variables are reciving negative INT values.
      A list of these bugs under this line:

      === MenuButtonUp ===
      http://doxygen.reactos.org/d2/d74/user32_2windows_2menu_8c_source.html#l02634
      Variable: Uint Id
      Recives negative values from: NtUserMenuItemFromPoint

      ===MenuMoveMouse ===
      http://doxygen.reactos.org/d2/d74/user32_2windows_2menu_8c_source.html#l02755
      Variable: Uint Index
      Recives negative values from: NtUserMenuItemFromPoint

      ===src_register===
      http://doxygen.reactos.org/d8/d98/st__glsl__to__tgsi_8cpp_a738629fb8497607a433533d12ec260a4.html#a738629fb8497607a433533d12ec260a4

      index is defined as unsigned int.

      Mesa will never reach
      04027 if (index < 0)

      ==co_IntSetScrollInfo==
      http://doxygen.reactos.org/d4/ddf/ntuser_2scrollbar_8c_a1309761ab4127519c60a57be43bc9197.html#a1309761ab4127519c60a57be43bc9197
      UINT nPage;

      00427 /* Make sure the page size is valid */
      00428 if (Info->nPage < 0)
      00429

      { 00430 pSBData->page = Info->nPage = 0; 00431 }

      00432 else

      This check is not needed( basically the dev is forcing nPage to be 0 in case it is negative, but it is an UINT).

      Attachments

        Activity

          People

            encoded encoded
            vicmarcal vicmarcal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: