summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_wm.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2008-05-07 01:52:24 +0000
committerjsorg71 <jsorg71>2008-05-07 01:52:24 +0000
commit71f58fad8bddd07a708d04ff7d9e32b7c6268567 (patch)
treef62b64c2337694914f56ca2bbd7197fb06fcaf38 /xrdp/xrdp_wm.c
parentef69b94717eb4f33caa691ade2537cbbfe2d1002 (diff)
downloadxrdp-proprietary-71f58fad8bddd07a708d04ff7d9e32b7c6268567.tar.gz
xrdp-proprietary-71f58fad8bddd07a708d04ff7d9e32b7c6268567.zip
use share path when loading files
Diffstat (limited to 'xrdp/xrdp_wm.c')
-rw-r--r--xrdp/xrdp_wm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c
index fe432825..c54e8691 100644
--- a/xrdp/xrdp_wm.c
+++ b/xrdp/xrdp_wm.c
@@ -333,13 +333,16 @@ int APP_CC
xrdp_wm_load_static_pointers(struct xrdp_wm* self)
{
struct xrdp_pointer_item pointer_item;
+ char file_path[256];
DEBUG(("sending cursor"));
- xrdp_wm_load_pointer(self, "cursor1.cur", pointer_item.data,
+ g_snprintf(file_path, 255, "%s/cursor1.cur", XRDP_SHARE_PATH);
+ xrdp_wm_load_pointer(self, file_path, pointer_item.data,
pointer_item.mask, &pointer_item.x, &pointer_item.y);
xrdp_cache_add_pointer_static(self->cache, &pointer_item, 1);
DEBUG(("sending cursor"));
- xrdp_wm_load_pointer(self, "cursor0.cur", pointer_item.data,
+ g_snprintf(file_path, 255, "%s/cursor0.cur", XRDP_SHARE_PATH);
+ xrdp_wm_load_pointer(self, file_path, pointer_item.data,
pointer_item.mask, &pointer_item.x, &pointer_item.y);
xrdp_cache_add_pointer_static(self->cache, &pointer_item, 0);
return 0;