Changeset 1030 for trunk/tools/linguist/lrelease/main.cpp
- Timestamp:
- Aug 26, 2011, 7:48:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/linguist/lrelease/main.cpp
r846 r1030 329 329 ) 330 330 { 331 // this is in sync with qmake_libraryInfoFile() from qmake/option.cpp 331 332 #ifdef Q_OS_WIN 332 333 wchar_t module_name[MAX_PATH]; … … 334 335 QFileInfo filePath = QString::fromWCharArray(module_name); 335 336 binDir = filePath.filePath(); 337 #elif defined(Q_OS_OS2) 338 QFileInfo filePath; 339 static char appFileName[CCHMAXPATH] = "\0"; 340 if (!appFileName[0]) { 341 PPIB ppib; 342 DosGetInfoBlocks(NULL, &ppib); 343 DosQueryModuleName(ppib->pib_hmte, sizeof(appFileName), appFileName); 344 } 345 binDir = QFileInfo(QString::fromLocal8Bit(appFileName)).filePath(); 336 346 #else 337 347 QString argv0 = QFile::decodeName(QByteArray(_argv0));
Note:
See TracChangeset
for help on using the changeset viewer.