mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
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:
@@ -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,
|
||||
...
|
||||
|
||||
@@ -1142,6 +1142,11 @@ PPH_STRING PhaConcatStrings(
|
||||
...
|
||||
);
|
||||
|
||||
PPH_STRING PhaConcatStrings2(
|
||||
__in PWSTR String1,
|
||||
__in PWSTR String2
|
||||
);
|
||||
|
||||
PPH_STRING PhaLowerString(
|
||||
__in PPH_STRING String
|
||||
);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user