[PATCH] qsettings_win - registry support

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sun Sep 19 15:45:29 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thx, I've moved ret out of the inner brackets and forgot to remove the
declarations. So here the new version, including fixes for mingw.

Since qmake now uses qsettings_win.cpp we must link it wth advapi32.dll.
~ I'll send the patches when cvs.sf.net is working again.

Thx,
Christian

Andy Goossens schrieb:
| On Sunday 19 September 2004 13:27, Christian Ehrlicher wrote:
|
|>bool QSettingsPrivate::sysWriteEntry( const QString &key, int data )
|>{
|
| (...snip...)
|
|>    long ret = -1;
|
|       ^^^^
|
|>    QString value;
|>
|>    HKEY hkey = sysd->createKey( key, KEY_SET_VALUE , value , globalScope
|>); if ( hkey ) {
|>        long ret = QT_WA_INLINE(
|
|           ^^^^
| (...snip...)
|
|>    }
|>    return ( ret == ERROR_SUCCESS );
|>}
|
|
| Pay attention to the scope of the 'ret' variable here (and in some other
| functions).
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBTY15nNKwkgf+zVMRAkEFAJ970zytcBm1PfB6qq2UBEFSAjG01QCdHStJ
IWiFoLHIpVfWPWjKJ1aqEZ0=
=Ex2t
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qsettings_win.cpp
Url: http://mail.kde.org/pipermail/kde-cygwin/attachments/20040919/e7917196/qsettings_win-0001.cpp


More information about the kde-cygwin mailing list