summaryrefslogtreecommitdiff
path: root/src/modules/srfile/file.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-06-15 14:13:45 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-06-15 14:13:45 +0000
commit4aa6229698b946e52ce19018aaf13f8b92fb168e (patch)
tree29334e8c5ee492a80f11a97fedab2373b8fbb392 /src/modules/srfile/file.cpp
parent5e8e561a80d1ac9ca1c2f1c3d388105733ed4e4e (diff)
another portion of "#ifsef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@426 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/srfile/file.cpp')
-rw-r--r--src/modules/srfile/file.cpp10
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;
}