aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support/log_win32.c
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-01-28 11:01:47 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2016-01-28 11:01:47 -0800
commitdcc99a24eab23e42b63593c9a45e0e7e1392c49b (patch)
treec5db732fb88e8527acd670264569bd6e420a80c3 /src/core/support/log_win32.c
parentd79ef3af71862f45fdb2b49b8427d403f2df0727 (diff)
parent9fad88fecf1e0669b5b428beb2d67f25e3147a11 (diff)
Merge branch 'master' of github.com:grpc/grpc into sync-async-plus-interfaces
Diffstat (limited to 'src/core/support/log_win32.c')
-rw-r--r--src/core/support/log_win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/support/log_win32.c b/src/core/support/log_win32.c
index 40adcd1b50..e18e667fe5 100644
--- a/src/core/support/log_win32.c
+++ b/src/core/support/log_win32.c
@@ -1,6 +1,6 @@
/*
*
- * Copyright 2015, Google Inc.
+ * Copyright 2015-2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -109,13 +109,13 @@ void gpr_default_log(gpr_log_func_args *args) {
fflush(stderr);
}
-char *gpr_format_message(DWORD messageid) {
+char *gpr_format_message(int messageid) {
LPTSTR tmessage;
char *message;
DWORD status = FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL, messageid, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
+ NULL, (DWORD)messageid, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR)(&tmessage), 0, NULL);
if (status == 0) return gpr_strdup("Unable to retrieve error string");
message = gpr_tchar_to_char(tmessage);