Thank you for sending patch. Here are few problems with it you need to fix:
Thanks for your tips. I'm sorry for doing some mistakes, but this is first time when I send patch and also I havn't experience in Wine development before. I hope I will contribute more complex and useful patchs in future (if time permits). Will send fixed patch soon.