aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/src
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2018-01-25 11:39:33 +0100
committerDan Gudmundsson <[email protected]>2018-01-25 11:39:33 +0100
commitf05074ac001a5f81f98c08d8812850a7d0b9ab18 (patch)
tree13c4763a59646b6cfe0dc59d0397e84ace963bbf /lib/wx/src
parentb06e5e8c70f4447cbd410094254cc45f95ff241d (diff)
parentd51c21fca9a4af46b9322b1425ed0a29ed50fd77 (diff)
downloadotp-f05074ac001a5f81f98c08d8812850a7d0b9ab18.tar.gz
otp-f05074ac001a5f81f98c08d8812850a7d0b9ab18.tar.bz2
otp-f05074ac001a5f81f98c08d8812850a7d0b9ab18.zip
Merge branch 'dgud/wx/fix-driver-usage'
* dgud/wx/fix-driver-usage: wx: open_port doesn't allow 0 terminated strings anymore
Diffstat (limited to 'lib/wx/src')
-rw-r--r--lib/wx/src/wxe_master.erl13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/wx/src/wxe_master.erl b/lib/wx/src/wxe_master.erl
index ce859b3eb3..a55917f0aa 100644
--- a/lib/wx/src/wxe_master.erl
+++ b/lib/wx/src/wxe_master.erl
@@ -122,16 +122,9 @@ init([SilentStart]) ->
erlang:error(not_smp)
end,
- case os:type() of
- {win32,_} -> %% Needed for mingwm10.dll
- Path = os:getenv("PATH"),
- os:putenv("PATH", PrivDir ++ ";" ++ Path);
- _ -> ok
- end,
-
case erl_ddll:load_driver(PrivDir,DriverName) of
ok -> ok;
- {error, What} ->
+ {error, What} ->
wxe_util:opt_error_log(SilentStart,
"WX Failed loading ~p@~p ~n",
[DriverName,PrivDir]),
@@ -139,8 +132,8 @@ init([SilentStart]) ->
erlang:error({load_driver,Str})
end,
process_flag(trap_exit, true),
- DriverWithArgs = DriverName ++ " " ++ code:priv_dir(wx) ++ [0],
-
+ DriverWithArgs = DriverName ++ " " ++ code:priv_dir(wx),
+
try
Port = open_port({spawn, DriverWithArgs},[binary]),
wx_debug_info = ets:new(wx_debug_info, [named_table]),