aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-03-12 20:54:19 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-03-12 20:54:19 +0000
commit62f4a5bc497a05431df9b324c3d5f4a1656a4ea4 (patch)
tree257f0555c06d4e79d91a027ee32cbdc91abcb75a /src
parentd2e8b131a46cb875cc200868cf06fd5a7d7c7b08 (diff)
downloadusdx-62f4a5bc497a05431df9b324c3d5f4a1656a4ea4.tar.gz
usdx-62f4a5bc497a05431df9b324c3d5f4a1656a4ea4.tar.xz
usdx-62f4a5bc497a05431df9b324c3d5f4a1656a4ea4.zip
fix bug report ID: 2969613. Thanks to Mike greywind
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2191 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--src/base/URecord.pas11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/base/URecord.pas b/src/base/URecord.pas
index 2c2093a0..a3f665e5 100644
--- a/src/base/URecord.pas
+++ b/src/base/URecord.pas
@@ -753,11 +753,12 @@ var
// search devices with same description
for i := 0 to deviceIndex-1 do
begin
- if (AudioInputProcessor.DeviceList[i].Name = name) then
- begin
- Result := true;
- Break;
- end;
+ if (AudioInputProcessor.DeviceList[i] <> nil) then
+ if (AudioInputProcessor.DeviceList[i].Name = name) then
+ begin
+ Result := true;
+ Break;
+ end;
end;
end;