diff options
author | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-03-12 20:54:19 +0000 |
---|---|---|
committer | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-03-12 20:54:19 +0000 |
commit | 62f4a5bc497a05431df9b324c3d5f4a1656a4ea4 (patch) | |
tree | 257f0555c06d4e79d91a027ee32cbdc91abcb75a /src | |
parent | d2e8b131a46cb875cc200868cf06fd5a7d7c7b08 (diff) | |
download | usdx-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 'src')
-rw-r--r-- | src/base/URecord.pas | 11 |
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; |