Commit 581598f8 authored by Ben Boeckel's avatar Ben Boeckel

windows: use the proper format specifier for DWORD

Change-Id: If655342a6a7de4ee5fe176eda0b54cf0def6d491
parent 1980a374
......@@ -26,6 +26,14 @@
# define _MAX_PATH 4096
#endif
#ifndef PRIdword
#if _LP64
#define PRIdword "u"
#else
#define PRIdword "lu"
#endif
#endif
vtkStandardNewMacro(vtkWin32ProcessOutputWindow);
extern "C" int vtkEncodedArrayWin32OutputWindowProcessWrite(const char* fname);
......@@ -87,7 +95,7 @@ int vtkWin32ProcessOutputWindow::Initialize()
// Construct the executable name from the process id, pointer to
// this output window instance, and a count. This should be unique.
sprintf(exeName, "vtkWin32OWP_%u_%p_%u.exe",
sprintf(exeName, "vtkWin32OWP_%"PRIdword"_%p_%u.exe",
GetCurrentProcessId(), this, this->Count++);
// Allocate a buffer to hold the executable path.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment