diff win/edge.cpp @ 2164:05dd5189099f

Win: Fix some warnings reported with -W3 in Visual C. Can compile with -W3 by issuing: "set DEBUG=Y" before building.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 30 Sep 2020 22:56:59 +0000
parents a8b55524b1b2
children da33732f182d
line wrap: on
line diff
--- a/win/edge.cpp	Wed Sep 30 19:34:17 2020 +0000
+++ b/win/edge.cpp	Wed Sep 30 22:56:59 2020 +0000
@@ -421,7 +421,7 @@
 		if (webview)
 			return webview->Raw(string);
 		else
-			dw_window_set_data(hwnd, _DW_HTML_DATA_RAW, strdup(string));
+			dw_window_set_data(hwnd, _DW_HTML_DATA_RAW, _strdup(string));
 		return DW_ERROR_NONE;
 	}
 
@@ -440,7 +440,7 @@
 		if (webview)
 			return webview->URL(url);
 		else
-			dw_window_set_data(hwnd, _DW_HTML_DATA_LOCATION, strdup(url));
+			dw_window_set_data(hwnd, _DW_HTML_DATA_LOCATION, _strdup(url));
 		return DW_ERROR_NONE;
 	}