for (index = 0; index < count; index++)
{
- appWindow = (xfAppWindow*) HashTable_GetItemValue(xfc->railWindows, (void *)pKeys[index]);
+ appWindow = (xfAppWindow*) HashTable_GetItemValue(xfc->railWindows, (void*)pKeys[index]);
if (appWindow)
{
Window child_window;
xfAppWindow* appWindow = NULL;
xfContext* xfc = (xfContext*) context->custom;
- appWindow = (xfAppWindow*) HashTable_GetItemValue(xfc->railWindows, (void *)&localMoveSize->windowId);
+ appWindow = (xfAppWindow*) HashTable_GetItemValue(xfc->railWindows,
+ (void*)&localMoveSize->windowId);
if (!appWindow)
return ERROR_INTERNAL_ERROR;
{
xfAppWindow* appWindow = NULL;
xfContext* xfc = (xfContext*) context->custom;
- appWindow = (xfAppWindow*) HashTable_GetItemValue(xfc->railWindows, (void *)&minMaxInfo->windowId);
+ appWindow = (xfAppWindow*) HashTable_GetItemValue(xfc->railWindows, (void*)&minMaxInfo->windowId);
if (appWindow)
{
return CHANNEL_RC_OK;
}
-static BOOL rail_window_key_equals(void *key1, void* key2)
+static BOOL rail_window_key_equals(void* key1, void* key2)
{
- return *(UINT32 *)key1 == *(UINT32 *)key2;
+ return *(UINT32*)key1 == *(UINT32*)key2;
+}
+
+static UINT32 rail_window_key_hash(void* key)
+{
+ return *(UINT32*)key;
}
static void rail_window_free(void* value)
rail->ServerMinMaxInfo = xf_rail_server_min_max_info;
rail->ServerLanguageBarInfo = xf_rail_server_language_bar_info;
rail->ServerGetAppIdResponse = xf_rail_server_get_appid_response;
-
xfc->railWindows = HashTable_New(TRUE);
+
if (!xfc->railWindows)
return 0;
+
xfc->railWindows->keyCompare = rail_window_key_equals;
+ xfc->railWindows->hash = rail_window_key_hash;
xfc->railWindows->valueFree = rail_window_free;
-
xfc->railIconCache = RailIconCache_New(xfc->context.settings);
if (!xfc->railIconCache)