From 2b0bc3093765bb9551a5bde0077322aa2296bc07 Mon Sep 17 00:00:00 2001 From: koldo Date: Sun, 26 May 2013 13:30:47 +0000 Subject: [PATCH] *SysInfo_demo_console: Fixes thanks to Wild git-svn-id: svn://ultimatepp.org/upp/trunk@6099 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/SysInfo_demo_console/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bazaar/SysInfo_demo_console/main.cpp b/bazaar/SysInfo_demo_console/main.cpp index 0bcbdc2cb..a7c6395d4 100644 --- a/bazaar/SysInfo_demo_console/main.cpp +++ b/bazaar/SysInfo_demo_console/main.cpp @@ -143,7 +143,7 @@ void Test() Puts (" Not mounted"); } Puts("\nOther Info:"); - uint64 id = GetProcessId(); + int64 id = GetProcessId(); Puts(Sprintf("Process Id: %ld", id)); Puts(Format("Process name: '%s'", GetProcessName(id))); Puts(Format("Process file name: '%s'", GetProcessFileName(id))); @@ -168,7 +168,7 @@ void Test() LaunchFile(fileTest); { TimeStop t; - uint64 windowId; + int64 windowId; while(-1 == (windowId = GetWindowIdFromCaption("test.txt", false))) { if (t.Elapsed() > 10000) break; @@ -198,7 +198,7 @@ void Test() } Puts("\nPress enter to terminate 'test.txt'"); TestGetchar(); - uint64 processId; + int64 processId; TimeStop t; while(-1 == (processId = GetProcessIdFromWindowCaption("test.txt", false))) { if (t.Elapsed() > 10000) @@ -216,7 +216,7 @@ void Test() Puts("\nPress enter to continue..."); TestGetchar(); Puts("\nWindows list:"); - Array widL, pidL; + Array widL, pidL; Array name, fileName, caption; GetWindowsList(widL, pidL, name, fileName, caption); for (int i = 0; i < widL.GetCount(); ++i) {