summaryrefslogtreecommitdiffstats
path: root/src/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc
index 90a1d45..14f6265 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -247,6 +247,10 @@ string GetLastErrorString() {
LocalFree(msg_buf);
return msg;
}
+
+void Win32Fatal(const char* function) {
+ Fatal("%s: %s", function, GetLastErrorString().c_str());
+}
#endif
static bool islatinalpha(int c) {