From 14334bc5ea60d9d6ac265c17f65ed51cd0fb7dcc Mon Sep 17 00:00:00 2001 From: "gagan%netscape.com" Date: Wed, 13 Oct 1999 11:50:14 +0000 Subject: [PATCH] Fix build bustage on windows. git-svn-id: svn://10.0.0.236/trunk@50594 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsWebShell.cpp | 3 ++- mozilla/webshell/src/nsWebShell.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 3b3df7557b8..0c540da63d4 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -4130,7 +4130,8 @@ nsWebShell::OnStatus(nsIChannel* channel, nsISupports* ctxt, #ifndef BUG_16273_FIXED //free the message- - CRTFREEIF((PRUnichar*)aMsg); + PRUnichar* temp = (PRUnichar*) aMsg; + CRTFREEIF(temp); #endif return rv; } diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index 3b3df7557b8..0c540da63d4 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -4130,7 +4130,8 @@ nsWebShell::OnStatus(nsIChannel* channel, nsISupports* ctxt, #ifndef BUG_16273_FIXED //free the message- - CRTFREEIF((PRUnichar*)aMsg); + PRUnichar* temp = (PRUnichar*) aMsg; + CRTFREEIF(temp); #endif return rv; }