Fix LOG_SYSRESULT
author <shinichiro.hamaji@gmail.com> <>
Tue, 3 Jul 2012 05:25:54 +0000 (05:25 +0000)
committer <shinichiro.hamaji@gmail.com> <>
Tue, 3 Jul 2012 05:25:54 +0000 (05:25 +0000)
commit7c613d6190d1a112a1943aa9f6526f070bc555b5
treebc40c630240a890141c167a1cc9fa3286246a965
parent6d42536769806d6aa875866ca5072937f57f5e49
Fix LOG_SYSRESULT

result is expected to be GetLastError() or WSAGetLastError(), so
we have to convert it to HRESULT by HRESULT_FROM_WIN32 for FAILED()
macro.
Use FormatMesssageA (ANSI version). since glog may not work with
Unicode string.

Contributed by ukai@

git-svn-id: https://google-glog.googlecode.com/svn/trunk@113 eb4d4688-79bd-11dd-afb4-1d65580434c0
src/glog/logging.h.in
src/windows/glog/logging.h