Francois Gouget : ntdll/tests: Remove a redundant 'if'.
Alexandre Julliard
julliard at winehq.org
Fri Nov 21 06:54:43 CST 2008
Module: wine
Branch: master
Commit: b0cf129c98433390cf1b62a9c4f4077843c74586
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b0cf129c98433390cf1b62a9c4f4077843c74586
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Thu Nov 20 20:49:43 2008 +0100
ntdll/tests: Remove a redundant 'if'.
---
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
More information about the wine-cvs
mailing list