diff options
author | jsorg71 <jsorg71> | 2005-02-08 03:45:30 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-02-08 03:45:30 +0000 |
commit | cf6e2abd416c26105396fa0dd1834e3879fa2e08 (patch) | |
tree | 920d5099051e3b3b036ffa097d554fb3af5bd504 /xrdp/xrdp_interface.c | |
parent | d2da72f5c96f537a1b8bed9af0f5b648c06e530a (diff) | |
download | xrdp-proprietary-cf6e2abd416c26105396fa0dd1834e3879fa2e08.tar.gz xrdp-proprietary-cf6e2abd416c26105396fa0dd1834e3879fa2e08.zip |
added a bunch of error checks
Diffstat (limited to 'xrdp/xrdp_interface.c')
-rw-r--r-- | xrdp/xrdp_interface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xrdp/xrdp_interface.c b/xrdp/xrdp_interface.c index 55b1de55..388e017e 100644 --- a/xrdp/xrdp_interface.c +++ b/xrdp/xrdp_interface.c @@ -50,7 +50,7 @@ int server_init(void) g_rdp_process = 0; make_stream(g_s); init_stream(g_s, 8192); - g_mod.handle = (int)(&g_mod); + g_mod.handle = (long)(&g_mod); g_mod.mod_event = mod_event; return 0; } @@ -107,7 +107,7 @@ int server_loop(int sck) } if (g_mod.wm == 0) { - g_mod.wm = (int)(g_rdp_process->wm); + g_mod.wm = (long)(g_rdp_process->wm); } } init_stream(g_s, 8192); @@ -134,7 +134,7 @@ int server_begin_update(void) wm = (struct xrdp_wm*)g_mod.wm; p = xrdp_painter_create(wm); xrdp_painter_begin_update(p); - g_mod.painter = (int)p; + g_mod.painter = (long)p; return 0; } @@ -224,7 +224,7 @@ int server_begin_update(struct xrdp_mod* mod) wm = (struct xrdp_wm*)mod->wm; p = xrdp_painter_create(wm); xrdp_painter_begin_update(p); - mod->painter = (int)p; + mod->painter = (long)p; return 0; } |