Author: hbelusca
Date: Sat Mar 1 22:42:38 2014
New Revision: 62372
URL: http://svn.reactos.org/svn/reactos?rev=62372&view=rev
Log:
[FTP]
Fix download with ftp.exe, the problem was that we didn't switch download mode to binary when needed, because of idiotic defines used that where pointless here. We have this bug since revision 12776...
Patch by Alexander Varnin, see CORE-3682 for details.
CORE-3682 #resolve #comment Committed in revision, cheers ;)
Modified:
trunk/reactos/base/applications/network/ftp/cmds.c
Modified: trunk/reactos/base/applications/network/ftp/cmds.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/cmds.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/cmds.c [iso-8859-1] Sat Mar 1 22:42:38 2014
@@ -85,18 +85,11 @@
}
host = hookup(argv[1], portnum);
if (host) {
-#if defined(unix) && NBBY == 8
int overbose;
-#endif
connected = 1;
if (autologin)
(void) login(argv[1]);
-#if defined(unix) && NBBY == 8
-/*
- * this ifdef is to keep someone form "porting" this to an incompatible
- * system and not checking this out. This way they have to think about it.
- */
overbose = verbose;
if (debug == 0)
verbose = -1;
@@ -119,7 +112,7 @@
*cp = c;
}
if (!strncmp(reply_string, "215 UNIX Type: L8", 17)) {
- setbinary();
+ setbinary(0, NULL);
/* allbinary = 1; this violates the RFC */
if (overbose)
printf("Using %s mode to transfer files.\n",
@@ -130,7 +123,6 @@
"Remember to set tenex mode when transfering binary files from this machine.\n");
}
verbose = overbose;
-#endif /* unix */
}
(void) fflush(stdout);
}
Author: hbelusca
Date: Sat Mar 1 20:52:46 2014
New Revision: 62370
URL: http://svn.reactos.org/svn/reactos?rev=62370&view=rev
Log:
[NTVDM]: Rework the code template to be used when we will support mice in ntvdm.
Modified:
branches/ntvdm/subsystems/ntvdm/hardware/ps2.c
Modified: branches/ntvdm/subsystems/ntvdm/hardware/ps2.c
URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/hardware…
==============================================================================
--- branches/ntvdm/subsystems/ntvdm/hardware/ps2.c [iso-8859-1] (original)
+++ branches/ntvdm/subsystems/ntvdm/hardware/ps2.c [iso-8859-1] Sat Mar 1 20:52:46 2014
@@ -337,17 +337,20 @@
RegisterIoPort(PS2_DATA_PORT , PS2ReadPort, PS2WritePort);
#if 0
- if (MousePresent)
- {
- /* Support mouse input events if there is a mouse on the system */
- if (GetConsoleMode(ConsoleInput, &ConInMode))
- SetConsoleMode(ConsoleInput, ConInMode | ENABLE_MOUSE_INPUT);
- }
- else
- {
- /* Do not support mouse input events if there is no mouse on the system */
- if (GetConsoleMode(ConsoleInput, &ConInMode))
- SetConsoleMode(ConsoleInput, ConInMode & ~ENABLE_MOUSE_INPUT);
+ if (GetConsoleMode(ConsoleInput, &ConInMode))
+ {
+ if (MousePresent)
+ {
+ /* Support mouse input events if there is a mouse on the system */
+ ConInMode |= ENABLE_MOUSE_INPUT;
+ }
+ else
+ {
+ /* Do not support mouse input events if there is no mouse on the system */
+ ConInMode &= ~ENABLE_MOUSE_INPUT;
+ }
+
+ SetConsoleMode(ConsoleInput, ConInMode);
}
#endif
Author: aandrejevic
Date: Sat Mar 1 15:13:54 2014
New Revision: 62367
URL: http://svn.reactos.org/svn/reactos?rev=62367&view=rev
Log:
[BASESRV]
Implement a function that creates a pair of event handles - BaseSrvCreatePairWaitHandles.
As already explained in the comments of BaseCheckForVDM (in kernel32), the hParent parameter
is actually an event handle (or more precisely, the client event handle), not a process handle.
Modified:
branches/ntvdm/subsystems/win/basesrv/vdm.c
branches/ntvdm/subsystems/win/basesrv/vdm.h
Modified: branches/ntvdm/subsystems/win/basesrv/vdm.c
URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/win/basesrv/vd…
==============================================================================
--- branches/ntvdm/subsystems/win/basesrv/vdm.c [iso-8859-1] (original)
+++ branches/ntvdm/subsystems/win/basesrv/vdm.c [iso-8859-1] Sat Mar 1 15:13:54 2014
@@ -164,6 +164,27 @@
}
return VdmAllowed;
+}
+
+NTSTATUS NTAPI BaseSrvCreatePairWaitHandles(PHANDLE ServerEvent, PHANDLE ClientEvent)
+{
+ NTSTATUS Status;
+
+ /* Create the event */
+ Status = NtCreateEvent(ServerEvent, EVENT_ALL_ACCESS, NULL, NotificationEvent, FALSE);
+ if (!NT_SUCCESS(Status)) return Status;
+
+ /* Duplicate the event into the client process */
+ Status = NtDuplicateObject(NtCurrentProcess(),
+ *ServerEvent,
+ CsrGetClientThread()->Process->ProcessHandle,
+ ClientEvent,
+ 0,
+ 0,
+ DUPLICATE_SAME_ATTRIBUTES | DUPLICATE_SAME_ACCESS);
+
+ if (!NT_SUCCESS(Status)) NtClose(*ServerEvent);
+ return Status;
}
VOID NTAPI BaseInitializeVDM(VOID)
@@ -276,6 +297,9 @@
DosRecord->ExitCode = 0;
// TODO: The DOS record structure is incomplete
+ Status = BaseSrvCreatePairWaitHandles(&DosRecord->ServerEvent, &DosRecord->ClientEvent);
+ if (!NT_SUCCESS(Status)) goto Cleanup;
+
/* Add the DOS record */
InsertHeadList(&ConsoleRecord->DosListHead, &DosRecord->Entry);
@@ -423,7 +447,7 @@
for (i = ConsoleRecord->DosListHead.Flink; i != &ConsoleRecord->DosListHead; i = i->Flink)
{
DosRecord = CONTAINING_RECORD(i, VDM_DOS_RECORD, Entry);
- if (DosRecord->ParentProcess == GetVDMExitCodeRequest->hParent) break;
+ if (DosRecord->ClientEvent == GetVDMExitCodeRequest->hParent) break;
}
/* Check if no DOS record was found */
Modified: branches/ntvdm/subsystems/win/basesrv/vdm.h
URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/win/basesrv/vd…
==============================================================================
--- branches/ntvdm/subsystems/win/basesrv/vdm.h [iso-8859-1] (original)
+++ branches/ntvdm/subsystems/win/basesrv/vdm.h [iso-8859-1] Sat Mar 1 15:13:54 2014
@@ -32,7 +32,8 @@
LIST_ENTRY Entry;
USHORT State;
ULONG ExitCode;
- HANDLE ParentProcess;
+ HANDLE ServerEvent;
+ HANDLE ClientEvent;
// TODO: Structure incomplete!!!
} VDM_DOS_RECORD, *PVDM_DOS_RECORD;
Author: ekohl
Date: Sat Mar 1 12:11:26 2014
New Revision: 62366
URL: http://svn.reactos.org/svn/reactos?rev=62366&view=rev
Log:
[NETAPI32]
NetUserSetInfo: Enable info levels 4, 22, 1017 and 1018.
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] Sat Mar 1 12:11:26 2014
@@ -3887,9 +3887,9 @@
case 1:
case 2:
case 3:
-// case 4:
+ case 4:
// case 21:
-// case 22:
+ case 22:
case 1003:
// case 1005:
case 1006:
@@ -3901,8 +3901,8 @@
case 1012:
case 1013:
case 1014:
-// case 1017:
-// case 1018:
+ case 1017:
+ case 1018:
// case 1020:
case 1024:
case 1025: