Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case IDM_LINK0: case IDM_LINK1: case IDM_LINK2: case IDM_LINK3: case IDM_LINK4:
- case IDM_LINK5: case IDM_LINK6: case IDM_LINK7: case IDM_LINK8: case IDM_LINK9:
- {
- unsigned idx = IDM_LINK0;
- for (TCHAR *p = _tcsstr(item->itemResource.statusMessage, _T("http://")); p && *p; p = _tcsstr(p+1, _T("http://")))
- {
- if (idx == gch->dwData)
- {
- char *bufPtr, *url = mir_t2a(p);
- for (bufPtr = url; *bufPtr && !isspace(*bufPtr); ++bufPtr) ;
- *bufPtr++ = 0;
- CallService(MS_UTILS_OPENURL, 1, (LPARAM)url);
- mir_free(url);
- break;
- }
- if (++idx > IDM_LINK9) break;
- }
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment