Преглед на файлове

Use %lx for DWORD.

GetLastError() returns DWORD, not C-String.
Tatsuhiro Tsujikawa преди 15 години
родител
ревизия
e818f9c8a5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/AbstractDiskWriter.cc

+ 1 - 1
src/AbstractDiskWriter.cc

@@ -212,7 +212,7 @@ void AbstractDiskWriter::truncate(uint64_t length)
   HANDLE handle = LongToHandle(_get_osfhandle(fd_));
   seek(length);
   if(SetEndOfFile(handle) == 0) {
-    throw DL_ABORT_EX2(fmt("SetEndOfFile failed. cause: %s",
+    throw DL_ABORT_EX2(fmt("SetEndOfFile failed. cause: %lx",
                            GetLastError()),
                        error_code::FILE_IO_ERROR);
   }