[PATCH v6 1/7] ntdll/tests: Move NtAllocateVirtualMemory tests that were in kernel32

Rémi Bernon rbernon at codeweavers.com
Fri May 31 03:31:10 CDT 2019


On Thu, 2019-05-30 at 13:19 +0100, Huw Davies wrote:
> On Wed, May 29, 2019 at 03:13:07PM +0200, Rémi Bernon wrote:
> > diff --git a/dlls/ntdll/tests/virtual.c
> > b/dlls/ntdll/tests/virtual.c
> > new file mode 100644
> > index 00000000000..63300ac9460
> > --- /dev/null
> > +++ b/dlls/ntdll/tests/virtual.c
> > @@ -0,0 +1,88 @@
> > +#include <stdio.h>
> > +
> > +#include "ntstatus.h"
> > +#define WIN32_NO_STATUS
> > +#include "windef.h"
> > +#include "winbase.h"
> > +#include "winnt.h"
> > +#include "winternl.h"
> > +#include "winerror.h"
> > +#include "winuser.h"
> > +#include "excpt.h"
> > +#include "wine/test.h"
> > +
> > +static NTSTATUS (WINAPI *pNtAllocateVirtualMemory)(HANDLE, PVOID
> > *, ULONG, SIZE_T *, ULONG, ULONG);
> > +static NTSTATUS (WINAPI *pNtFreeVirtualMemory)(HANDLE, PVOID *,
> > SIZE_T *, ULONG);
> 
> I don't see any reason to dynamically load these fn ptrs, you can
> just
> call the functions directly.

Is there a particular reason the tested functions are dynamically
loaded in some test executables?

Rémi.





More information about the wine-devel mailing list