Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/activeqt/control/qaxservermain.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information (qt-info@nokia.com)
     4** All rights reserved.
     5** Contact: Nokia Corporation (qt-info@nokia.com)
    56**
    67** This file is part of the ActiveQt framework of the Qt Toolkit.
     
    6768extern bool qAxIsServer;
    6869extern bool qAxOutProcServer;
    69 extern char qAxModuleFilename[MAX_PATH];
     70extern wchar_t qAxModuleFilename[MAX_PATH];
    7071extern QString qAxInit();
    7172extern void qAxCleanup();
     
    106107{
    107108    dwThreadID = GetCurrentThreadId();
    108     hEventShutdown = CreateEventA(0, false, false, 0);
     109    hEventShutdown = CreateEvent(0, false, false, 0);
    109110    if (hEventShutdown == 0)
    110111        return false;
     
    204205
    205206    qAxOutProcServer = true;
    206     GetModuleFileNameA(0, qAxModuleFilename, MAX_PATH-1);
     207    GetModuleFileName(0, qAxModuleFilename, MAX_PATH);
    207208    qAxInstance = hInstance;
    208209
    209     QByteArray cmdParam;
    210     QT_WA({
    211         LPTSTR cmdline = GetCommandLineW();
    212         cmdParam = QString::fromUtf16((const ushort *)cmdline).toLocal8Bit();
    213     }, {
    214         cmdParam = GetCommandLineA();
    215     });
    216    
     210    QByteArray cmdParam = QString::fromWCharArray(GetCommandLine()).toLocal8Bit();
    217211    QList<QByteArray> cmds = cmdParam.split(' ');
    218212    QByteArray unprocessed;
     
    254248            break;
    255249        } else {
    256             unprocessed += cmds.at(i) + " ";
     250            unprocessed += cmds.at(i) + ' ';
    257251        }
    258252    }
Note: See TracChangeset for help on using the changeset viewer.