Just cleaning up my wine tree and found I never did anything with this patch - I put a question on wine-dev a while ago without any replies so decided to just submit it anyway. Bug#446 reported an issue of buffer overflow (which is caused by the missing /n at a guess) and also an error msg 'illegal combination with FILE_ATTRIBUTE_NORMAL'.