[ros-bugs] [Bug 724] New: InstallHinfSection broken

ReactOS.Bugzilla at reactos.com ReactOS.Bugzilla at reactos.com
Mon Aug 15 00:10:02 CEST 2005


http://reactos.com/bugzilla/show_bug.cgi?id=724

           Summary: InstallHinfSection broken
           Product: ReactOS
           Version: TRUNK
          Platform: x86 Hardware
        OS/Version: ReactOS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Setup
        AssignedTo: ros-bugs at reactos.com
        ReportedBy: gvg at reactos.com
OtherBugsDependingO 711
             nThis:


InstallHinfSection doesn't add REG_SZ entries. This happened in r17162.

SetupGetStringFieldW() (and possibly others too) now return failure and set an
error of ERROR_INSUFFICIENT_BUFFER when the passed in buffer and size are NULL
and 0 resp. I think this is not correct. MSDN says:

"If this function is called with a ReturnBuffer of NULL and a ReturnBufferSize
of zero, the function puts the buffer size needed to hold the specified data
into the variable pointed to by RequiredSize. If the function succeeds in this,
the return value is a nonzero value."

So buffer == NULL and size == 0 is a special case. Other code (e.g. the call in
lib/setupapi/install.c line 328) depends on this behaviour and is now broken too.

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


More information about the Ros-bugs mailing list