fixed the PHA_DEREFERENCE macro (now an inline function)

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2622 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2010-01-14 10:44:55 +00:00
parent bdc980e22d
commit 2814ddff4f
3 changed files with 24 additions and 2 deletions
+8
View File
@@ -56,6 +56,14 @@ PPH_STRING PhaConcatStrings(
return PHA_DEREFERENCE(PhConcatStrings_V(Count, argptr));
}
PPH_STRING PhaConcatStrings2(
__in PWSTR String1,
__in PWSTR String2
)
{
return PHA_DEREFERENCE(PhConcatStrings2(String1, String2));
}
PPH_STRING PhaPrintfString(
__in PWSTR Format,
...
+5
View File
@@ -1142,6 +1142,11 @@ PPH_STRING PhaConcatStrings(
...
);
PPH_STRING PhaConcatStrings2(
__in PWSTR String1,
__in PWSTR String2
);
PPH_STRING PhaLowerString(
__in PPH_STRING String
);
+11 -2
View File
@@ -135,10 +135,19 @@ VOID PhDrainAutoPool(
/**
* Calls PhaDereferenceObject() and returns the given object.
*
* \param Object A pointer to an object.
* \param Object A pointer to an object. The value can be
* null; in that case no action is performed.
*
* \return The value of \a Object.
*/
#define PHA_DEREFERENCE(Object) (PhaDereferenceObject(Object), (Object))
FORCEINLINE PVOID PHA_DEREFERENCE(
__in PVOID Object
)
{
if (Object)
PhaDereferenceObject(Object);
return Object;
}
#endif