KDE/kdelibs/kdecore/services

Paulo Moura Guedes pmouraguedes at gmail.com
Mon Nov 5 17:04:44 CET 2007


On 11/5/07, Christian Ehrlicher <Ch.Ehrlicher at gmx.de> wrote:
> > 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 ...

Can you explain why?

> --> unsigned int type = GetDriveTypeW( (LPCWSTR) path.utf16() );

Commited.

Paulo



More information about the Kde-windows mailing list