Andrew Talbot : comdlg32: Write-strings warning fix.

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 24 04:00:21 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 0d4afab70454bb17a87d7259bdfac36a00ca7be2
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=0d4afab70454bb17a87d7259bdfac36a00ca7be2

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Tue May 23 20:05:53 2006 +0100

comdlg32: Write-strings warning fix.

---

 dlls/comdlg32/printdlg.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c
index f42054a..be6e7e5 100644
--- a/dlls/comdlg32/printdlg.c
+++ b/dlls/comdlg32/printdlg.c
@@ -325,8 +325,9 @@ static BOOL PRINTDLG_UpdatePrintDlgA(HWN
 	    lppd->Flags &= ~PD_PAGENUMS;
 
 	if (IsDlgButtonChecked(hDlg, chx1) == BST_CHECKED) {/* Print to file */
+	    static char file[] = "FILE:";
 	    lppd->Flags |= PD_PRINTTOFILE;
-	    pi->pPortName = "FILE:";
+	    pi->pPortName = file;
 	}
 
 	if (IsDlgButtonChecked(hDlg, chx2) == BST_CHECKED) { /* Collate */




More information about the wine-cvs mailing list