[ros-diffs] [mf] 13327: store start URL statically
mf at svn.reactos.com
mf at svn.reactos.com
Thu Jan 27 01:18:32 CET 2005
store start URL statically
Modified: trunk/reactos/subsys/system/ibrowser/mainframe.cpp
_____
Modified: trunk/reactos/subsys/system/ibrowser/mainframe.cpp
--- trunk/reactos/subsys/system/ibrowser/mainframe.cpp 2005-01-27
00:09:43 UTC (rev 13326)
+++ trunk/reactos/subsys/system/ibrowser/mainframe.cpp 2005-01-27
00:18:30 UTC (rev 13327)
@@ -44,10 +44,8 @@
//@@hMainFrame = MainFrame::Create(url);
if (hMainFrame) {
- String sPath;
-
if (url) {
- sPath = url; // copy url to avoid accessing
freed memory
+ static String sPath = url; // copy url to
avoid accessing freed memory
url = sPath;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050127/9ca3a19f/attachment.html
More information about the Ros-diffs
mailing list