aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/c_src/wxe_driver.c
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2010-02-26 16:23:27 +0100
committerBjörn Gustavsson <[email protected]>2010-03-10 15:07:38 +0100
commit58bf309625bb2fc99a7689d3ce2dcb6de2a3a04c (patch)
tree42a2f85f4d48214a75f36fd35f1b734371f7ead9 /lib/wx/c_src/wxe_driver.c
parente2f78fbb4dabb19dd908821febc64acd843ad5b4 (diff)
downloadotp-58bf309625bb2fc99a7689d3ce2dcb6de2a3a04c.tar.gz
otp-58bf309625bb2fc99a7689d3ce2dcb6de2a3a04c.tar.bz2
otp-58bf309625bb2fc99a7689d3ce2dcb6de2a3a04c.zip
wx: Correct usage of driver callbacks from wx thread
Diffstat (limited to 'lib/wx/c_src/wxe_driver.c')
-rw-r--r--lib/wx/c_src/wxe_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/wx/c_src/wxe_driver.c b/lib/wx/c_src/wxe_driver.c
index 3b951bec57..c927deb0ef 100644
--- a/lib/wx/c_src/wxe_driver.c
+++ b/lib/wx/c_src/wxe_driver.c
@@ -113,6 +113,7 @@ wxe_driver_start(ErlDrvPort port, char *buff)
data->driver_data = NULL;
data->bin = NULL;
data->port = port;
+ data->pdl = driver_pdl_create(port);
if(WXE_DRV_PORT == 0) {
for(; *buff != 32; buff++);
buff++;
@@ -124,7 +125,7 @@ wxe_driver_start(ErlDrvPort port, char *buff)
if(!(start_native_gui(data) == 1))
return(ERL_DRV_ERROR_GENERAL); /* ENOMEM */
} else {
- meta_command(CREATE_PORT,data);
+ meta_command(CREATE_PORT,data);
}
return (ErlDrvData) data;
}