Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug in GetProfStringList()

17 views
Skip to first unread message

Dave English

unread,
Mar 13, 2001, 6:13:14 AM3/13/01
to
Using the GetProfStringList() function to read the key names and key
values of a non-unique key, while the listKeyNames returned is correct,
the listValues repeats the first key value for each non-unique name.
Because of this bug, the values cannot be read, making the function no
better than GetStringList with an empty key name string, which could
already read the key names.

Needless to say, this is using IS6.22 .

I use this function to read the [rename] section of wininit.ini .
During uninstallation file deletes of locked files are entered there as
NUL=file1, NUL=file2 etc..

I have reported this to InstallShield on the bugrpt form. I see that
the effect was noted here almost a year ago, in article
<38fdd...@208.30.171.38>, Mike Peterson <mpet...@bdcast.com> writes
>Newsgroups: installshield.is6.general
>Subject: GetProfStringList + duplicate Keynames = no workie
>Date: Wed, 19 Apr 2000 11:06:50 -0500

>I called GetProfStringList ("MyFile.ini", "AudNever", listKeyNames,
>listValues) where there are duplicate KeyNames.
>
>Ex:
>[AudNever]
>c:\windows=AVDLG.INI
>c:\windows=COLOR.INI
>
>I get
>AVDLG.INI
>AVDLG.INI
>if I view the lstValues.
>
>Is this designed behaviour?

Presumably no one reported the bug then, never mind :-(
--
Dave English,
Client Software Development, Thus PLC,
Dorking Business Park, DORKING, Surrey, UK. RH4 1HJ
http://www.thus.net

0 new messages