Previous 15994 Revisions Next

r8548 Tuesday 20th July, 2010 at 09:55:08 UTC by Miodrag Milanović
Made UI works correct with multiple softlists.
[src/mess/osd/winui]softwarelist.c

src/mess/osd/winui/softwarelist.c
r8547r8548
4343   char file_name[MAX_PATH];
4444   char publisher[MAX_PATH];
4545   char year[10];
46
46   char full_name[MAX_PATH*2];
47   
4748   char device[MAX_PATH];
4849};
4950
r8547r8548
8384   pPickerInfo = GetSoftwareListInfo(hwndPicker);
8485   if ((nIndex < 0) || (nIndex >= pPickerInfo->file_index_length))
8586      return NULL;
86   return pPickerInfo->file_index[nIndex]->file_name;
87   return pPickerInfo->file_index[nIndex]->full_name;
8788}
8889
8990LPCSTR SoftwareList_LookupDevice(HWND hwndPicker, int nIndex)
r8547r8548
157158   strcpy(pInfo->publisher, pszPublisher);
158159   strcpy(pInfo->year, pszYear);
159160   strcpy(pInfo->device, pszDevice);
161   sprintf(pInfo->full_name,"%s:%s", pszListname,pszName);
162   
160163
161164   ppNewIndex = (file_info**)malloc((pPickerInfo->file_index_length + 1) * sizeof(*pPickerInfo->file_index));
162165   memcpy(ppNewIndex,pPickerInfo->file_index,pPickerInfo->file_index_length * sizeof(*pPickerInfo->file_index));

Previous 15994 Revisions Next


© 1998-2018 The MESS Team