Changeset 45574 in vbox
- Timestamp:
- Apr 16, 2013 3:01:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.cpp
r45573 r45574 290 290 /* Parse the file content: */ 291 291 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 */ 292 296 QRegExp regExp("(-{5}BEGIN CERTIFICATE-{5}[\\s\\S\\n]+-{5}END CERTIFICATE-{5})\\n" 293 297 "(-{5}BEGIN CERTIFICATE-{5}[\\s\\S\\n]+-{5}END CERTIFICATE-{5})"); 298 #endif /* !Q_WS_WIN */ 294 299 regExp.setMinimal(true); 295 300 int iIndex = regExp.indexIn(strData); … … 488 493 /* Add 'new-line' character: */ 489 494 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 */ 490 498 rc = file.write("\n") != -1 ? VINF_SUCCESS : VERR_WRITE_ERROR; 499 #endif /* !Q_WS_WIN */ 491 500 492 501 /* Return result-code: */
Note:
See TracChangeset
for help on using the changeset viewer.