Author: ekohl
Date: Sun Jan 6 10:45:46 2013
New Revision: 58125
URL:
http://svn.reactos.org/svn/reactos?rev=58125&view=rev
Log:
[NETAPI32]
Fix indentation. No code changes!
Modified:
trunk/reactos/dll/win32/netapi32/user.c
Modified: trunk/reactos/dll/win32/netapi32/user.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/user.c?…
==============================================================================
--- trunk/reactos/dll/win32/netapi32/user.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netapi32/user.c [iso-8859-1] Sun Jan 6 10:45:46 2013
@@ -301,73 +301,73 @@
switch (level)
{
- case 0:
- UserInfo0 = (PUSER_INFO_0)LocalBuffer;
-
- Ptr = (LPWSTR)((ULONG_PTR)UserInfo0 + sizeof(USER_INFO_0));
- UserInfo0->usri0_name = Ptr;
-
- memcpy(UserInfo0->usri0_name,
- UserInfo->UserName.Buffer,
- UserInfo->UserName.Length);
- UserInfo0->usri0_name[UserInfo->UserName.Length / sizeof(WCHAR)] =
UNICODE_NULL;
- break;
-
- case 1:
- UserInfo1 = (PUSER_INFO_1)LocalBuffer;
-
- Ptr = (LPWSTR)((ULONG_PTR)UserInfo1 + sizeof(USER_INFO_1));
-
- UserInfo1->usri1_name = Ptr;
-
- memcpy(UserInfo1->usri1_name,
- UserInfo->UserName.Buffer,
- UserInfo->UserName.Length);
- UserInfo1->usri1_name[UserInfo->UserName.Length / sizeof(WCHAR)] =
UNICODE_NULL;
-
- Ptr = (LPWSTR)((ULONG_PTR)Ptr + UserInfo->UserName.Length +
sizeof(WCHAR));
-
- UserInfo1->usri1_password = NULL;
-
- /* FIXME: UserInfo1->usri1_password_age */
- /* FIXME: UserInfo1->usri1_priv */
-
- if (UserInfo->HomeDirectory.Length > 0)
- {
- UserInfo1->usri1_home_dir = Ptr;
-
- memcpy(UserInfo1->usri1_home_dir,
- UserInfo->HomeDirectory.Buffer,
- UserInfo->HomeDirectory.Length);
- UserInfo1->usri1_home_dir[UserInfo->HomeDirectory.Length /
sizeof(WCHAR)] = UNICODE_NULL;
-
- Ptr = (LPWSTR)((ULONG_PTR)Ptr + UserInfo->HomeDirectory.Length +
sizeof(WCHAR));
- }
-
- if (UserInfo->AdminComment.Length > 0)
- {
- UserInfo1->usri1_comment = Ptr;
-
- memcpy(UserInfo1->usri1_comment,
- UserInfo->AdminComment.Buffer,
- UserInfo->AdminComment.Length);
- UserInfo1->usri1_comment[UserInfo->AdminComment.Length /
sizeof(WCHAR)] = UNICODE_NULL;
-
- Ptr = (LPWSTR)((ULONG_PTR)Ptr + UserInfo->AdminComment.Length +
sizeof(WCHAR));
- }
-
-// UserInfo1->usri1_flags = UserInfo->UserAccountControl;
-
- if (UserInfo->ScriptPath.Length > 0)
- {
- UserInfo1->usri1_script_path = Ptr;
-
- memcpy(UserInfo1->usri1_script_path,
- UserInfo->ScriptPath.Buffer,
- UserInfo->ScriptPath.Length);
- UserInfo1->usri1_script_path[UserInfo->ScriptPath.Length /
sizeof(WCHAR)] = UNICODE_NULL;
- }
- break;
+ case 0:
+ UserInfo0 = (PUSER_INFO_0)LocalBuffer;
+
+ Ptr = (LPWSTR)((ULONG_PTR)UserInfo0 + sizeof(USER_INFO_0));
+ UserInfo0->usri0_name = Ptr;
+
+ memcpy(UserInfo0->usri0_name,
+ UserInfo->UserName.Buffer,
+ UserInfo->UserName.Length);
+ UserInfo0->usri0_name[UserInfo->UserName.Length / sizeof(WCHAR)] =
UNICODE_NULL;
+ break;
+
+ case 1:
+ UserInfo1 = (PUSER_INFO_1)LocalBuffer;
+
+ Ptr = (LPWSTR)((ULONG_PTR)UserInfo1 + sizeof(USER_INFO_1));
+
+ UserInfo1->usri1_name = Ptr;
+
+ memcpy(UserInfo1->usri1_name,
+ UserInfo->UserName.Buffer,
+ UserInfo->UserName.Length);
+ UserInfo1->usri1_name[UserInfo->UserName.Length / sizeof(WCHAR)] =
UNICODE_NULL;
+
+ Ptr = (LPWSTR)((ULONG_PTR)Ptr + UserInfo->UserName.Length +
sizeof(WCHAR));
+
+ UserInfo1->usri1_password = NULL;
+
+ /* FIXME: UserInfo1->usri1_password_age */
+ /* FIXME: UserInfo1->usri1_priv */
+
+ if (UserInfo->HomeDirectory.Length > 0)
+ {
+ UserInfo1->usri1_home_dir = Ptr;
+
+ memcpy(UserInfo1->usri1_home_dir,
+ UserInfo->HomeDirectory.Buffer,
+ UserInfo->HomeDirectory.Length);
+ UserInfo1->usri1_home_dir[UserInfo->HomeDirectory.Length /
sizeof(WCHAR)] = UNICODE_NULL;
+
+ Ptr = (LPWSTR)((ULONG_PTR)Ptr + UserInfo->HomeDirectory.Length +
sizeof(WCHAR));
+ }
+
+ if (UserInfo->AdminComment.Length > 0)
+ {
+ UserInfo1->usri1_comment = Ptr;
+
+ memcpy(UserInfo1->usri1_comment,
+ UserInfo->AdminComment.Buffer,
+ UserInfo->AdminComment.Length);
+ UserInfo1->usri1_comment[UserInfo->AdminComment.Length /
sizeof(WCHAR)] = UNICODE_NULL;
+
+ Ptr = (LPWSTR)((ULONG_PTR)Ptr + UserInfo->AdminComment.Length +
sizeof(WCHAR));
+ }
+
+// UserInfo1->usri1_flags = UserInfo->UserAccountControl;
+
+ if (UserInfo->ScriptPath.Length > 0)
+ {
+ UserInfo1->usri1_script_path = Ptr;
+
+ memcpy(UserInfo1->usri1_script_path,
+ UserInfo->ScriptPath.Buffer,
+ UserInfo->ScriptPath.Length);
+ UserInfo1->usri1_script_path[UserInfo->ScriptPath.Length /
sizeof(WCHAR)] = UNICODE_NULL;
+ }
+ break;
case 2:
UserInfo2 = (PUSER_INFO_2)LocalBuffer;