Commit c17b0609 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: different call to SHAddToRecentDocs

Should close #7696
parent f902d8b1
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
SHARD_SHELLITEM = 0x00000008 SHARD_SHELLITEM = 0x00000008
} SHARD; */ } SHARD; */
#define SHARD_PATHW 0x00000003 #define SHARD_PATHW 0x00000003
#include <vlc_charset.h>
#endif #endif
...@@ -91,7 +93,9 @@ void RecentsMRL::addRecent( const QString &mrl ) ...@@ -91,7 +93,9 @@ void RecentsMRL::addRecent( const QString &mrl )
char* path = make_path( qtu( mrl ) ); char* path = make_path( qtu( mrl ) );
if( path ) if( path )
{ {
SHAddToRecentDocs( SHARD_PATHW, mrl.utf16() ); wchar_t *wmrl = ToWide( path );
SHAddToRecentDocs( SHARD_PATHW, wmrl );
free( wmrl );
free( path ); free( path );
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment