KDE/kdelibs/kdecore/services
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Mon Nov 5 16:39:17 CET 2007
> Von: Paulo Moura Guedes <moura at kdewebdev.org>
> SVN commit 733109 by mojo:
>
> Fix build for win32, GetDriveType receives a LPCTSTR parameter.
>
> CCMAIL: kde-windows at kde.org
>
> M +1 -1 kmimetype.cpp
>
>
> --- trunk/KDE/kdelibs/kdecore/services/kmimetype.cpp #733108:733109
> @@ -206,7 +206,7 @@
> // FIXME: distinguish between mounted & unmounted
> int size = path.size();
> if ( size == 2 || size == 3 ) {
> - unsigned int type = GetDriveType( (LPCWSTR) path.utf16() );
> + unsigned int type = GetDriveType( (LPCTSTR) path.utf16() );
> switch( type ) {
> case DRIVE_REMOVABLE:
> return KMimeType::mimeType( "media/floppy_mounted" );
Happy crash with mingw ...
--> unsigned int type = GetDriveTypeW( (LPCWSTR) path.utf16() );
Christian
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
More information about the Kde-windows
mailing list