Mercurial > dwindows
comparison win/dw.c @ 2045:cb195d76de8e
Win: Make HTML_RESULT event match other platforms and disable dev tools when not DEBUG.
When javascript_run() does not have a result other platforms return a NULL pointer,
but Edge Chromium returns a string "null"; this change checks for "null" and makes it
a NULL pointer instead. This may cause problems when a "null" string result is the
expected result. Additionally disable developer tools for the HTML widget when DEBUG
is not defined when compiling.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 25 Nov 2019 04:47:43 +0000 |
parents | 82e5c998df2e |
children | e8a34118a845 |
comparison
equal
deleted
inserted
replaced
2044:b74b9afa31aa | 2045:cb195d76de8e |
---|---|
2387 case WM_USER+100: | 2387 case WM_USER+100: |
2388 { | 2388 { |
2389 if(hWnd == tmp->window) | 2389 if(hWnd == tmp->window) |
2390 { | 2390 { |
2391 int (DWSIGNAL *htmlresultfunc)(HWND, int, char *, void *, void *) = tmp->signalfunction; | 2391 int (DWSIGNAL *htmlresultfunc)(HWND, int, char *, void *, void *) = tmp->signalfunction; |
2392 | 2392 void** params = (void**)mp1; |
2393 return htmlresultfunc(tmp->window, mp1 ? DW_ERROR_NONE : DW_ERROR_UNKNOWN, (char *)mp1, (void *)mp2, tmp->data); | 2393 |
2394 return htmlresultfunc(tmp->window, DW_POINTER_TO_INT(params[1]), (char *)params[0], (void *)mp2, tmp->data); | |
2394 } | 2395 } |
2395 } | 2396 } |
2396 break; | 2397 break; |
2397 case WM_USER+101: | 2398 case WM_USER+101: |
2398 { | 2399 { |