From 655b457a767802969aa2c178ec9eeb5f1a00abbd Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Thu, 29 May 2014 03:23:01 -0700 Subject: [PATCH] AppModules/Winamp: check the index and the title of the currently selected entry in the playlist, as the empty playlist returns infinity and none for filetitle. re #2093. --- source/appModules/winamp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/appModules/winamp.py b/source/appModules/winamp.py index 75a534cf5cc..cf12b0fa6f3 100644 --- a/source/appModules/winamp.py +++ b/source/appModules/winamp.py @@ -1,6 +1,6 @@ #appModules/winamp.py #A part of NonVisual Desktop Access (NVDA) -#Copyright (C) 2006-2012 NVDA Contributors +#Copyright (C) 2006-2014 NVDA Contributors #This file is covered by the GNU General Public License. #See the file COPYING for more details. @@ -114,6 +114,8 @@ def _get_name(self): winKernel.readProcessMemory(self.processHandle,internalInfo,byref(info),sizeof(info),None) finally: winKernel.virtualFreeEx(self.processHandle,internalInfo,0,winKernel.MEM_RELEASE) + if curIndex==4294967295 and not info.filetitle: + return self.windowText return unicode("%d.\t%s\t%s"%(curIndex+1,info.filetitle,info.filelength), errors="replace", encoding=locale.getlocale()[1]) def _get_role(self):