[Qt-creator] potential bug in winldap.h of your mingw distribution

Liebe Markus (RtP2/TEF72) Markus.Liebe at de.bosch.com
Wed May 13 11:46:38 CEST 2009


Hi,

I think I have encountered a bug in the winldap.h of your mingw distribution.

The function ldap_explode_dnA should return a PCHAR* instead of just a PCHAR.
After changing that in the headerfile the function works as expected.

Without the asterisk it does not work.
According to MSDN the function is defined returning a PCHAR* : http://msdn.microsoft.com/en-us/library/aa366576(VS.85).aspx

Attached you will find a diff containing the changes I made to the header file to get it working.

Mit freundlichen Grüßen / Best regards

Markus Liebe

Robert Bosch GmbH
Automotive Electronics, RtP2/TEF72
Postfach 13 42
72703 Reutlingen
GERMANY
www.bosch.com

Tel. 07121 35-35246
markus.liebe at de.bosch.com

Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000;
Aufsichtsratsvorsitzender: Hermann Scholl; Geschäftsführung: Franz Fehrenbach, Siegfried Dais;
Bernd Bohr, Rudolf Colm, Volkmar Denner, Gerhard Kümmel, Wolfgang Malchow, Peter Marks,
Peter Tyroller; Uwe Raschke


-------------- next part --------------
A non-text attachment was scrubbed...
Name: winldap.diff
Type: application/octet-stream
Size: 232 bytes
Desc: winldap.diff
Url : http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090513/1f24e89c/attachment.obj 


More information about the Qt-creator-old mailing list