ntdll/tests: Remove a redundant 'if'.
Francois Gouget
fgouget at codeweavers.com
Thu Nov 20 13:49:43 CST 2008
---
dlls/ntdll/tests/reg.c | 49 ++++++++++++++++++++++-------------------------
1 files changed, 23 insertions(+), 26 deletions(-)
diff --git a/dlls/ntdll/tests/reg.c b/dlls/ntdll/tests/reg.c
index 23dd278..1525bb1 100644
--- a/dlls/ntdll/tests/reg.c
+++ b/dlls/ntdll/tests/reg.c
@@ -161,32 +161,29 @@ static BOOL InitFunctionPtrs(void)
trace("Could not load ntdll.dll\n");
return FALSE;
}
- if (hntdll)
- {
- NTDLL_GET_PROC(RtlCreateUnicodeStringFromAsciiz)
- NTDLL_GET_PROC(RtlCreateUnicodeString)
- NTDLL_GET_PROC(RtlFreeUnicodeString)
- NTDLL_GET_PROC(NtDeleteValueKey)
- NTDLL_GET_PROC(RtlQueryRegistryValues)
- NTDLL_GET_PROC(RtlCheckRegistryKey)
- NTDLL_GET_PROC(RtlOpenCurrentUser)
- NTDLL_GET_PROC(NtClose)
- NTDLL_GET_PROC(NtDeleteValueKey)
- NTDLL_GET_PROC(NtCreateKey)
- NTDLL_GET_PROC(NtFlushKey)
- NTDLL_GET_PROC(NtDeleteKey)
- NTDLL_GET_PROC(NtQueryValueKey)
- NTDLL_GET_PROC(NtSetValueKey)
- NTDLL_GET_PROC(NtOpenKey)
- NTDLL_GET_PROC(RtlFormatCurrentUserKeyPath)
- NTDLL_GET_PROC(RtlReAllocateHeap)
- NTDLL_GET_PROC(RtlAppendUnicodeToString)
- NTDLL_GET_PROC(RtlUnicodeStringToAnsiString)
- NTDLL_GET_PROC(RtlFreeHeap)
- NTDLL_GET_PROC(RtlAllocateHeap)
- NTDLL_GET_PROC(RtlZeroMemory)
- NTDLL_GET_PROC(RtlpNtQueryValueKey)
- }
+ NTDLL_GET_PROC(RtlCreateUnicodeStringFromAsciiz)
+ NTDLL_GET_PROC(RtlCreateUnicodeString)
+ NTDLL_GET_PROC(RtlFreeUnicodeString)
+ NTDLL_GET_PROC(NtDeleteValueKey)
+ NTDLL_GET_PROC(RtlQueryRegistryValues)
+ NTDLL_GET_PROC(RtlCheckRegistryKey)
+ NTDLL_GET_PROC(RtlOpenCurrentUser)
+ NTDLL_GET_PROC(NtClose)
+ NTDLL_GET_PROC(NtDeleteValueKey)
+ NTDLL_GET_PROC(NtCreateKey)
+ NTDLL_GET_PROC(NtFlushKey)
+ NTDLL_GET_PROC(NtDeleteKey)
+ NTDLL_GET_PROC(NtQueryValueKey)
+ NTDLL_GET_PROC(NtSetValueKey)
+ NTDLL_GET_PROC(NtOpenKey)
+ NTDLL_GET_PROC(RtlFormatCurrentUserKeyPath)
+ NTDLL_GET_PROC(RtlReAllocateHeap)
+ NTDLL_GET_PROC(RtlAppendUnicodeToString)
+ NTDLL_GET_PROC(RtlUnicodeStringToAnsiString)
+ NTDLL_GET_PROC(RtlFreeHeap)
+ NTDLL_GET_PROC(RtlAllocateHeap)
+ NTDLL_GET_PROC(RtlZeroMemory)
+ NTDLL_GET_PROC(RtlpNtQueryValueKey)
return TRUE;
}
#undef NTDLL_GET_PROC
--
1.5.6.5
More information about the wine-patches
mailing list