[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r1246: These should be signed, not unsigned. (trunk/src/util)
Author: edmanm
Date: 2006-09-27 02:22:41 -0400 (Wed, 27 Sep 2006)
New Revision: 1246
Modified:
trunk/src/util/process.cpp
trunk/src/util/win32.cpp
trunk/src/util/win32.h
Log:
These should be signed, not unsigned.
Modified: trunk/src/util/process.cpp
===================================================================
--- trunk/src/util/process.cpp 2006-09-27 02:57:13 UTC (rev 1245)
+++ trunk/src/util/process.cpp 2006-09-27 06:22:41 UTC (rev 1246)
@@ -51,7 +51,7 @@
is_process_running(qint64 pid)
{
#if defined(Q_OS_WIN)
- QHash<quint64, QString> procList = win32_process_list();
+ QHash<qint64, QString> procList = win32_process_list();
if (procList.contains(pid)) {
/* A process with this ID exists. Check if it's Vidalia. */
QString exeFile = procList.value(pid);
Modified: trunk/src/util/win32.cpp
===================================================================
--- trunk/src/util/win32.cpp 2006-09-27 02:57:13 UTC (rev 1245)
+++ trunk/src/util/win32.cpp 2006-09-27 06:22:41 UTC (rev 1246)
@@ -146,14 +146,14 @@
/** Returns a list of all currently active processes, including their pid
* and exe filename. */
-QHash<quint64, QString>
+QHash<qint64, QString>
win32_process_list()
{
- QHash<quint64, QString> procList;
+ QHash<qint64, QString> procList;
HANDLE hSnapshot;
PROCESSENTRY32 proc;
QString exeFile;
- quint64 pid;
+ qint64 pid;
/* Create a snapshot of all active processes */
hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
@@ -164,7 +164,7 @@
if (Process32First(hSnapshot, &proc)) {
do {
/* Extract the PID and exe filename from the process record */
- pid = (quint64)proc.th32ProcessID;
+ pid = (qint64)proc.th32ProcessID;
QT_WA(
exeFile = QString::fromUtf16((const ushort *)proc.szExeFile);,
exeFile = QString::fromAscii((const char *)proc.szExeFile);
Modified: trunk/src/util/win32.h
===================================================================
--- trunk/src/util/win32.h 2006-09-27 02:57:13 UTC (rev 1245)
+++ trunk/src/util/win32.h 2006-09-27 06:22:41 UTC (rev 1246)
@@ -50,7 +50,7 @@
/** Returns a list of all currently active processes, including their pid
* and exe filename. */
-QHash<quint64, QString> win32_process_list();
+QHash<qint64, QString> win32_process_list();
#endif