comparison gui/win32/interface.c @ 34117:39ca8e25ba79

Change and add comment. Replace "file name" by "file path" and explain the need of converting the filename.
author ib
date Sun, 16 Oct 2011 10:48:23 +0000
parents 3d7ee643b110
children 178c5660c090
comparison
equal deleted inserted replaced
34116:5f7c090e5ae8 34117:39ca8e25ba79
332 mygui->startplay(mygui); 332 mygui->startplay(mygui);
333 } 333 }
334 334
335 #ifdef __WINE__ 335 #ifdef __WINE__
336 /** 336 /**
337 * @brief Convert a Windows style file name into an Unix style one. 337 * @brief Convert a Windows style path to a file name into an Unix style one.
338 * 338 *
339 * @param filename pointer to the file name to be converted 339 * @param filename pointer to the file path to be converted
340 * 340 *
341 * @return pointer to the converted file name 341 * @return pointer to the converted file path
342 */ 342 */
343 static char *unix_name (char *filename) 343 static char *unix_name (char *filename)
344 { 344 {
345 static char *unix_filename; 345 static char *unix_filename;
346 LPSTR (*CDECL wine_get_unix_file_name_ptr)(LPCWSTR); 346 LPSTR (*CDECL wine_get_unix_file_name_ptr)(LPCWSTR);
378 else 378 else
379 setddup(&guiInfo.Filename, dir, name); 379 setddup(&guiInfo.Filename, dir, name);
380 380
381 filename = guiInfo.Filename; 381 filename = guiInfo.Filename;
382 #ifdef __WINE__ 382 #ifdef __WINE__
383 filename = unix_name(filename); 383 filename = unix_name(filename); // passed file arguments may be in Windows format
384 #endif 384 #endif
385 guiInfo.StreamType = type; 385 guiInfo.StreamType = type;
386 386
387 nfree(guiInfo.AudioFilename); 387 nfree(guiInfo.AudioFilename);
388 nfree(guiInfo.SubtitleFilename); 388 nfree(guiInfo.SubtitleFilename);