• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Installation Manager Tool


Commit MetaInfo

修订版c5646aff15c45f59aa49514394f771277c6ea63a (tree)
时间2011-01-06 06:26:44
作者Keith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Avoid a potential out-of-range action name look-up.

更改概述

差异

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
1+2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2+
3+ Avoid a potential out-of-range action name look-up.
4+
5+ * src/pkgdeps.cpp: Update copyright notice for new year.
6+ (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
7+ determine correct action name when diagnosing uninstalled package.
8+
19 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
210
311 Make "install" and "remove" notifications symmetric.
--- a/src/pkgdeps.cpp
+++ b/src/pkgdeps.cpp
@@ -4,7 +4,7 @@
44 * $Id$
55 *
66 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
7- * Copyright (C) 2009, 2010, MinGW Project
7+ * Copyright (C) 2009, 2010, 2011, MinGW Project
88 *
99 *
1010 * Implementation of the package dependency resolver method, of the
@@ -565,7 +565,7 @@ void pkgXmlDocument::Schedule( unsigned long action, const char* name )
565565 * is an error; diagnose it.
566566 */
567567 dmh_notify( DMH_ERROR, "%s %s: package is not installed\n",
568- action_name( action ), name
568+ action_name( action & ACTION_MASK ), name
569569 );
570570 }
571571