Hi Tatyana
Welcome to Wine.
Wine has a test suite to make sure, that new code is correct.
Example, what you never tested:
- if(!pDeviceName) {
- if(!pDeviceName && !*pDeviceName) {
Your code will crash, when pDeviceName is NULL. I expect, you want to use a logical OR, but i did not test such a code change.
-- By by ... Detlef