* sizeof(TCHAR));
_snprintf((LPTSTR) lpDisplayBuf,
LocalSize(lpDisplayBuf) / sizeof(TCHAR),
- TEXT("%s failed with error %d: %s"), __FILE__, dw, lpMsgBuf);
+ TEXT("%s failed with error %ld: %s"), __FILE__, dw, (const char *)lpMsgBuf);
cc_log("can't execute %s; OS returned error: %s",
full_path_win_ext, (char *)lpDisplayBuf);
* sizeof(TCHAR));
_snprintf((LPTSTR) lp_display_buf,
LocalSize(lp_display_buf) / sizeof(TCHAR),
- TEXT("%s failed with error %d: %s"), __FILE__, dw,
- lp_msg_buf);
+ TEXT("%s failed with error %ld: %s"), __FILE__, dw,
+ (const char *)lp_msg_buf);
cc_log("can't get hostname OS returned error: %s", (char *)lp_display_buf);
* sizeof(TCHAR));
_snprintf((LPTSTR) lp_display_buf,
LocalSize(lp_display_buf) / sizeof(TCHAR),
- TEXT("%s failed with error %d: %s"), __FILE__, dw, lp_msg_buf);
+ TEXT("%s failed with error %ld: %s"), __FILE__, dw, (const char *)lp_msg_buf);
cc_log("can't rename file %s to %s OS returned error: %s",
oldpath, newpath, (char *) lp_display_buf);