VirtualBox

Changeset 45574 in vbox


Ignore:
Timestamp:
Apr 16, 2013 3:01:53 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Tune r85065 to Win host.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.cpp

    r45573 r45574  
    290290        /* Parse the file content: */
    291291        QString strData(file.readAll());
     292#ifdef Q_WS_WIN
     293        QRegExp regExp("(-{5}BEGIN CERTIFICATE-{5}[\\s\\S\\r\\n]+-{5}END CERTIFICATE-{5})\\r\\n"
     294                       "(-{5}BEGIN CERTIFICATE-{5}[\\s\\S\\r\\n]+-{5}END CERTIFICATE-{5})");
     295#else /* Q_WS_WIN */
    292296        QRegExp regExp("(-{5}BEGIN CERTIFICATE-{5}[\\s\\S\\n]+-{5}END CERTIFICATE-{5})\\n"
    293297                       "(-{5}BEGIN CERTIFICATE-{5}[\\s\\S\\n]+-{5}END CERTIFICATE-{5})");
     298#endif /* !Q_WS_WIN */
    294299        regExp.setMinimal(true);
    295300        int iIndex = regExp.indexIn(strData);
     
    488493    /* Add 'new-line' character: */
    489494    if (RT_SUCCESS(rc))
     495#ifdef Q_WS_WIN
     496        rc = file.write("\r\n") != -1 ? VINF_SUCCESS : VERR_WRITE_ERROR;
     497#else /* Q_WS_WIN */
    490498        rc = file.write("\n") != -1 ? VINF_SUCCESS : VERR_WRITE_ERROR;
     499#endif /* !Q_WS_WIN */
    491500
    492501    /* Return result-code: */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette