Changeset 377 for trunk/icedtea-web/plugin/icedteanp/IcedTeaNPPlugin.cc
- Timestamp:
- Jun 5, 2012, 9:51:10 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web/plugin/icedteanp/IcedTeaNPPlugin.cc
r374 r377 45 45 #include <emx/startup.h> 46 46 #include <sys/socket.h> 47 #include "OS_OS2.h" 47 48 #endif 48 49 … … 61 62 #include "IcedTeaScriptablePluginObject.h" 62 63 #include "IcedTeaNPPlugin.h" 63 64 #include "OS.h"65 64 66 65 #ifdef __OS2__ … … 777 776 } 778 777 778 #ifdef __OS2__ 779 void *wnd = wrap_window_handle (window->window); 780 if (!wnd) 781 return NPERR_GENERIC_ERROR; 782 783 PLUGIN_DEBUG ("ITNP_SetWindow: wrapped window handle %d (%x) in %d (%x)\n", 784 window->window, window->window, wnd, wnd); 785 #endif 786 779 787 if (data->window_handle) 780 788 { 781 789 // The window already exists. 782 if (data->window_handle == w indow->window)790 if (data->window_handle == wnd) 783 791 { 784 792 // The parent window is the same as in previous calls. … … 851 859 852 860 // Store the window handle and dimensions 853 data->window_handle = w indow->window;861 data->window_handle = wnd; 854 862 data->window_width = window->width; 855 863 data->window_height = window->height; … … 2249 2257 return NPERR_NO_ERROR; 2250 2258 2259 #ifdef __OS2__ 2260 // perform OS-specific initialization 2261 if (!init_os()) 2262 { 2263 PLUGIN_ERROR ("Failed to perform OS-specific initialization."); 2264 return NPERR_GENERIC_ERROR; 2265 } 2266 #endif 2267 2251 2268 // Make sure the plugin data directory exists, creating it if 2252 2269 // necessary.
Note:
See TracChangeset
for help on using the changeset viewer.