<div dir="ltr">Yes it is a typo, the issue is with the declaration, it should be ::delete.<div><br><div>Thanks for pointing that :)</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 16, 2016 at 6:42 PM, Frediano Ziglio <span dir="ltr"><<a href="mailto:fziglio@redhat.com" target="_blank">fziglio@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">><br>
> Based on a patch by Sandy Stutsman <<a href="mailto:sstutsma@redhat.com">sstutsma@redhat.com</a>><br>
><br>
> Signed-off-by: Sameeh Jubran <<a href="mailto:sameeh@daynix.com">sameeh@daynix.com</a>><br>
> ---<br>
> qxldod/BaseObject.cpp | 11 +++++++++++<br>
> qxldod/BaseObject.h | 1 +<br>
> 2 files changed, 12 insertions(+)<br>
><br>
> diff --git a/qxldod/BaseObject.cpp b/qxldod/BaseObject.cpp<br>
> index ac270fd..a93c040 100755<br>
> --- a/qxldod/BaseObject.cpp<br>
> +++ b/qxldod/BaseObject.cpp<br>
> @@ -70,3 +70,14 @@ void __cdecl operator delete[](void* pObject)<br>
> ExFreePool(pObject);<br>
> }<br>
> }<br>
> +<br>
> +void __cdecl operator delete(void *pObject, size_t s)<br>
> +{<br>
> + PAGED_CODE();<br>
> +<br>
> + UNREFERENCED_PARAMETER(s);<br>
> +<br>
> + if (pObject != NULL) {<br>
> + ExFreePool(pObject);<br>
> + }<br>
> +}<br>
> diff --git a/qxldod/BaseObject.h b/qxldod/BaseObject.h<br>
> index 66e66e4..94bd163 100755<br>
> --- a/qxldod/BaseObject.h<br>
> +++ b/qxldod/BaseObject.h<br>
> @@ -57,3 +57,4 @@ _When_((PoolType & NonPagedPoolMustSucceed) != 0,<br>
> void* __cdecl operator new[](size_t Size, POOL_TYPE PoolType = PagedPool);<br>
> void __cdecl operator delete(void* pObject);<br>
> void __cdecl operator delete[](void* pObject);<br>
> +void __cdecl operator delete[](void *pObject, size_t s);<br>
<br>
</div></div>The declaration is about ::delete[] but the definition is about ::delete.<br>
Is it a typo?<br>
<span class="HOEnZb"><font color="#888888"><br>
Frediano<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font size="4" color="#0b5394" face="times new roman, serif">Respectfully,<br></font><div style="font-size:12.8px;color:rgb(136,136,136)"><font size="4" color="#0b5394" face="times new roman, serif"><b><i>Sameeh Jubran</i></b></font></div><div style="font-size:12.8px;color:rgb(136,136,136)"><i style="color:rgb(7,55,99);font-family:"times new roman",serif;font-size:large"><span style="line-height:15px"><a href="https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a" title="View public profile" name="UNIQUE_ID_SafeHtmlFilter_UNIQUE_ID_SafeHtmlFilter_UNIQUE_ID_SafeHtmlFilter_UNIQUE_ID_SafeHtmlFilter_14e2c1de96f8c195_UNIQUE_ID_SafeHtmlFilter_SafeHtmlFilter_SafeHtmlFilter_webProfileURL" style="color:rgb(17,85,204);margin:0px;padding:0px;border-width:0px;outline:none;vertical-align:baseline;text-decoration:none" target="_blank">Linkedin</a></span></i><br></div><div style="font-size:12.8px;color:rgb(136,136,136)"><font size="4" face="times new roman, serif" color="#073763"><i>Junior Software Engineer @ <a href="http://www.daynix.com" target="_blank">Daynix</a>.</i></font></div></div></div></div></div></div></div>
</div>