[ros-bugs] [Bug 5861] New: PATCH: Fix kernel32 GetCurrentDirectoryA winetest failures.

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Thu Jan 27 22:30:36 UTC 2011


http://www.reactos.org/bugzilla/show_bug.cgi?id=5861

           Summary: PATCH: Fix kernel32 GetCurrentDirectoryA winetest
                    failures.
           Product: ReactOS
           Version: TRUNK
          Platform: x86 Hardware
        OS/Version: ReactOS
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: Win32
        AssignedTo: ros-bugs at reactos.org
        ReportedBy: reactos at hrobert.hu


Created an attachment (id=5660)
 --> (http://www.reactos.org/bugzilla/attachment.cgi?id=5660)
See description.

[KERNEL32]
Callers of FilenameU2A_FitOrFail always perform the MAX_PATH test on the
wrapped unicode API, but do not test the supplied buffer length being >
MAX_PATH.
Because ANSI_STRING.MaximumLength is an USHORT, a destLen with 65536 causes it
to be set to 0. Fix this by selecting the smaller value of destLen and MAX_PATH
as MaximumLength.

Fixes two path related kernel32 winetests on GetCurrentDirectoryA():
http://reactos.org/testman/detail.php?id=1271580
path.c:462: Test failed: wrong result foo
path.c:467: Test failed: wrong result foo


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Ros-bugs mailing list