Commit 46940ac9 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Remove unneeded wine/library.h include.

Use lstrlenW() instead of the Wine-specific strlenW(). This also lets us get rid of the wine/unicode.h include. Define the InitializeObjectAttributes() macro if not using Wine's winternl.h header.
parent d05532e2
......@@ -24,12 +24,10 @@
#include "ntdll_test.h"
#include "winternl.h"
#include "wine/library.h"
#include "stdio.h"
#include "winnt.h"
#include "winnls.h"
#include "stdlib.h"
#include "wine/unicode.h"
#ifndef __WINE_WINTERNL_H
......@@ -69,6 +67,16 @@ typedef struct _RTL_QUERY_REGISTRY_TABLE {
ULONG DefaultLength;
} RTL_QUERY_REGISTRY_TABLE, *PRTL_QUERY_REGISTRY_TABLE;
#define InitializeObjectAttributes(p,n,a,r,s) \
do { \
(p)->Length = sizeof(OBJECT_ATTRIBUTES); \
(p)->RootDirectory = r; \
(p)->Attributes = a; \
(p)->ObjectName = n; \
(p)->SecurityDescriptor = s; \
(p)->SecurityQualityOfService = NULL; \
} while (0)
#endif
static NTSTATUS (WINAPI * pRtlCreateUnicodeStringFromAsciiz)(PUNICODE_STRING, LPCSTR);
......@@ -151,7 +159,7 @@ static NTSTATUS WINAPI QueryRoutine (IN PCWSTR ValueName, IN ULONG ValueType, IN
if(ValueName)
{
ValueNameLength = strlenW(ValueName);
ValueNameLength = lstrlenW(ValueName);
ValName = (LPSTR)pRtlAllocateHeap(GetProcessHeap(), 0, ValueNameLength);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment