diff options
Diffstat (limited to 'src/Common/Dictionary.c')
-rw-r--r-- | src/Common/Dictionary.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Common/Dictionary.c b/src/Common/Dictionary.c index 382e6b70..d6203e6b 100644 --- a/src/Common/Dictionary.c +++ b/src/Common/Dictionary.c @@ -22,11 +22,15 @@ static size_t DataPoolSize = 0; void AddDictionaryEntry (char *key, int intKey, void *value)
{
- if (key)
- StringKeyMap[key] = value;
+ try
+ {
+ if (key)
+ StringKeyMap[key] = value;
- if (intKey != 0)
- IntKeyMap[intKey] = value;
+ if (intKey != 0)
+ IntKeyMap[intKey] = value;
+ }
+ catch (exception&) {}
}
|