diff options
Diffstat (limited to 'src/modules/srfile/file.cpp')
-rw-r--r-- | src/modules/srfile/file.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/modules/srfile/file.cpp b/src/modules/srfile/file.cpp index 3a39014162..6570bc296a 100644 --- a/src/modules/srfile/file.cpp +++ b/src/modules/srfile/file.cpp @@ -41,7 +41,7 @@ static INT_PTR SendSpecificFiles(WPARAM wParam, LPARAM lParam) {
FileSendData fsd;
fsd.hContact=(HANDLE)wParam;
- #if defined( _UNICODE )
+
char** ppFiles = ( char** )lParam;
int count = 0;
while ( ppFiles[count] != NULL )
@@ -51,14 +51,10 @@ static INT_PTR SendSpecificFiles(WPARAM wParam, LPARAM lParam) for ( int i=0; i < count; i++ )
fsd.ppFiles[i] = ( const TCHAR* )mir_a2t( ppFiles[i] );
fsd.ppFiles[ count ] = NULL;
- #else
- fsd.ppFiles=(const char**)lParam;
- #endif
+
CreateDialogParam(hMirandaInst, MAKEINTRESOURCE(IDD_FILESEND), NULL, DlgProcSendFile, (LPARAM)&fsd);
- #if defined( _UNICODE )
- for ( int j=0; j < count; j++ )
+ for ( int j=0; j < count; j++ )
mir_free(( void* )fsd.ppFiles[j] );
- #endif
return 0;
}
|