]> git.netwichtig.de Git - user/henk/code/inspircd.git/commit
Fix broken RetrieveLastError()
authorattilamolnar <attilamolnar@hush.com>
Mon, 3 Dec 2012 19:32:22 +0000 (20:32 +0100)
committerattilamolnar <attilamolnar@hush.com>
Mon, 3 Dec 2012 20:28:38 +0000 (21:28 +0100)
commit4451fd13a1accec8d7c2b1bb7fdafd6e50a2566b
tree9c707e4384c5be2eee462729e3e378e3a738c0b1
parenta99f41c3ebdb464518d18d83a45f1e0ad86d9d88
Fix broken RetrieveLastError()

- FORMAT_MESSAGE_IGNORE_INSERTS flag wasn't used and we never pass insertion parameters, this could cause FormatMessage() to fail
- The return value of FormatMessage() wasn't checked, if it returned zero (failure) then RetrieveLastError() returned garbage if err[] wasn't initialized previously
win/win32service.cpp