D5/D6 bug ShlwapiLibrary>>pathCompactPathEx:...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

D5/D6 bug ShlwapiLibrary>>pathCompactPathEx:...

Steve Alan Waring
Hi,

ShlwapiLibrary>>pathCompactPathEx:pszSrc:cchMax:dwFlags: has a return
value type of lpstr. It should be bool. (The comment is right).

http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/shlwapi/path/pathcompactpathex.asp?frame=true

A failing test is:

testPathCompactPathEx1
        | buffer |
        buffer := String new: 10.
        self
                assert: (ShlwapiLibrary default pathCompactPathEx: buffer pszSrc:
'c:\foo\' cchMax: 9 dwFlags: nil).
        self assert: buffer trimNulls = 'c:\foo\'.

Thanks,
Steve
--
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: D5/D6 bug ShlwapiLibrary>>pathCompactPathEx:...

Support at Object Arts
"Steve Alan Waring" <[hidden email]> wrote in message
news:[hidden email]...
> Hi,
>
> ShlwapiLibrary>>pathCompactPathEx:pszSrc:cchMax:dwFlags: has a return
> value type of lpstr. It should be bool. (The comment is right).
....

Thanks Steve.

Shows the folly of writing external methods by hand - we'll regenerate all
these from our ever-growing Win32 type library.

Regards

OA