diff options
author | Alex Marsev <alex.marsev@gmail.com> | 2015-09-18 15:54:57 +0300 |
---|---|---|
committer | Alex Marsev <alex.marsev@gmail.com> | 2015-09-18 15:54:57 +0300 |
commit | 86dc4f4389c84e12459be33413268b58b9367a70 (patch) | |
tree | a537000d217acfd4820658656becffdf8585a364 | |
parent | 1b66e34caa4832ecddbf758d0d10fc483353bf90 (diff) |
Add debug assert
-rw-r--r-- | src/AudioDeviceManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/AudioDeviceManager.cpp b/src/AudioDeviceManager.cpp index e6384ce..727b8d1 100644 --- a/src/AudioDeviceManager.cpp +++ b/src/AudioDeviceManager.cpp @@ -42,6 +42,7 @@ namespace SaneAudioRenderer PROPVARIANT prop;
PropVariantInit(&prop);
ThrowIfFailed(pStore->GetValue(key, &prop));
+ assert(prop.vt == VT_LPWSTR);
auto ret = std::make_shared<std::wstring>(prop.pwszVal);
PropVariantClear(&prop);
|