only show one screen of text at a time for displaying help.
Modified: trunk/reactos/subsys/system/cmd/dir.c
_____
Modified: trunk/reactos/subsys/system/cmd/dir.c
--- trunk/reactos/subsys/system/cmd/dir.c 2005-10-31 00:14:45 UTC
(rev 18906)
+++ trunk/reactos/subsys/system/cmd/dir.c 2005-10-31 00:53:00 UTC
(rev 18907)
@@ -218,7 +218,7 @@
*/
static VOID DirHelp(VOID)
{
- ConOutResPuts(STRING_DIR_HELP1);
+ ConOutResPaging(TRUE, STRING_DIR_HELP1);
}
Removed some code to make dir behave the same way as MS CMD. bug
reported by irc::mikedep333
Modified: trunk/reactos/subsys/system/cmd/dir.c
_____
Modified: trunk/reactos/subsys/system/cmd/dir.c
--- trunk/reactos/subsys/system/cmd/dir.c 2005-10-31 00:10:04 UTC
(rev 18904)
+++ trunk/reactos/subsys/system/cmd/dir.c 2005-10-31 00:10:32 UTC
(rev 18905)
@@ -240,7 +240,7 @@
BOOL bPNegative; /* Negative switch parameter */
BOOL bIntoQuotes; /* A flag showing if we are in quotes (") */
LPTSTR ptrLast; /* A pointer to the last character of param */
- UINT t = 0;
+
/* Initialize variables; */
@@ -261,31 +261,6 @@
lpFlags->stTimeField.bParSetted = TRUE;
- /* Add correct handling of *. */
- for(t=0;t<_tcslen(Line);t++)
- {
- static INT count=0;
-
- if ((count==0) && (Line[t]==_T('*')))
- count++;
-
- else if ((count==1) && (Line[t]==_T('.')))
- count++;
-
- else if ((count==2) && (Line[t]==_T('*')))
- count++;
-
- else if (!_istspace(Line[t]))
- {
- if (count==2)
- lpFlags->bWideListColSort = ! bNegative;
- count=-1;
- }
- }
-
-
-
-
/* Main Loop (see README_DIR.txt) */
/* scan the command line char per char, and we process its char
*/
while (*Line)
@@ -1980,7 +1955,7 @@
stFlags.stOrderBy.bUnSet = FALSE;
nErrorLevel = 0;
-
+
/* read the parameters from the DIRCMD environment variable */
if (GetEnvironmentVariable (_T("DIRCMD"), dircmd, 256))
if (!DirReadParam(dircmd, ¶m, &stFlags))
small ceanup in hal startup process
Modified: trunk/reactos/lib/ddraw/hal/ddraw_hal.c
_____
Modified: trunk/reactos/lib/ddraw/hal/ddraw_hal.c
--- trunk/reactos/lib/ddraw/hal/ddraw_hal.c 2005-10-30 23:21:57 UTC
(rev 18900)
+++ trunk/reactos/lib/ddraw/hal/ddraw_hal.c 2005-10-30 23:29:40 UTC
(rev 18901)
@@ -49,9 +49,8 @@
NULL,
NULL,
NULL ))
- {
- OutputDebugString(L"First DdQueryDirectDrawObject
failed");
- return 1;
+ {
+ return DD_FALSE;
}
This->HalInfo.vmiData.pvmList = HeapAlloc(GetProcessHeap(), 0,
sizeof(VIDMEM) * This->HalInfo.vmiData.dwNumHeaps);
@@ -71,9 +70,8 @@
This->DirectDrawGlobal.lpdwFourCC,
This->HalInfo.vmiData.pvmList
))
- {
- OutputDebugString(L"Second DdQueryDirectDrawObject
failed");
- return 1;
+ {
+ return DD_FALSE;
}
/* Copy HalInfo to DirectDrawGlobal (Not complete)*/
@@ -277,12 +275,7 @@
DriverInfo.dwExpectedSize = sizeof(DDPIXELFORMAT);
This->HalInfo.GetDriverInfo( &DriverInfo);
-
-
- /* Setup some info from the callbacks we got */
-
- /* FIXME do more callbacks and fill the gpl struct */
-
+ /* Setup some info from the callbacks we got */
DDHAL_GETAVAILDRIVERMEMORYDATA mem;
mem.lpDD = &This->DirectDrawGlobal;
@@ -290,9 +283,8 @@
This->DirectDrawGlobal.ddCaps.dwVidMemFree = mem.dwFree;
This->DirectDrawGlobal.ddCaps.dwVidMemTotal = mem.dwTotal;
-
- /* Now all setup for HAL is done and we hopply do not have
forget anything */
-
+
+ /* Now all setup for HAL is done */
return DD_OK;
}
Small change for hal startup process only few callbacks are not include
Modified: trunk/reactos/lib/ddraw/hal/ddraw_hal.c
_____
Modified: trunk/reactos/lib/ddraw/hal/ddraw_hal.c
--- trunk/reactos/lib/ddraw/hal/ddraw_hal.c 2005-10-30 22:47:31 UTC
(rev 18899)
+++ trunk/reactos/lib/ddraw/hal/ddraw_hal.c 2005-10-30 23:21:57 UTC
(rev 18900)
@@ -15,7 +15,6 @@
{
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
-
/* point to it self */
This->DirectDrawGlobal.lp16DD = &This->DirectDrawGlobal;
@@ -29,7 +28,6 @@
This->DirectDrawGlobal.lpD3DHALCallbacks =
(ULONG_PTR)HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,
sizeof(D3DHAL_CALLBACKS));
This->DirectDrawGlobal.lpD3DGlobalDriverData =
(ULONG_PTR)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
sizeof(D3DHAL_GLOBALDRIVERDATA));
-
/* Fill in some info */
This->HalInfo.lpD3DGlobalDriverData =
This->DirectDrawGlobal.lpD3DGlobalDriverData;
This->HalInfo.lpD3DHALCallbacks =
This->DirectDrawGlobal.lpD3DHALCallbacks;
@@ -37,8 +35,6 @@
This->HalInfo.lpDDExeBufCallbacks =
&This->DirectDrawGlobal.lpDDCBtmp->HALDDExeBuf;
This->HalInfo.lpDDPaletteCallbacks =
&This->DirectDrawGlobal.lpDDCBtmp->HALDDPalette;
This->HalInfo.lpDDSurfaceCallbacks =
&This->DirectDrawGlobal.lpDDCBtmp->HALDDSurface;
-
- /* FIXME The insate is not right we need the info that the three
NULL return */
/* query all kinds of infos from the driver */
if(!DdQueryDirectDrawObject (
@@ -57,15 +53,9 @@
OutputDebugString(L"First DdQueryDirectDrawObject
failed");
return 1;
}
-
- /* FIXME The insate is not right we need the info that the three
NULL return and use it here*/
-
- /* Fixme shall we selected the pixel type before we call the
DdQueryDirectDrawObject second time
- and fill in more info ?? */
-
+
This->HalInfo.vmiData.pvmList = HeapAlloc(GetProcessHeap(), 0,
sizeof(VIDMEM) * This->HalInfo.vmiData.dwNumHeaps);
- This->DirectDrawGlobal.lpdwFourCC = HeapAlloc(GetProcessHeap(),
0, sizeof(DWORD) * This->HalInfo.ddCaps.dwNumFourCCCodes);
- This->DirectDrawGlobal.lpZPixelFormats =
HeapAlloc(GetProcessHeap(), 0, sizeof(DDPIXELFORMAT) *
This->DirectDrawGlobal.dwNumZPixelFormats);
+ This->DirectDrawGlobal.lpdwFourCC = HeapAlloc(GetProcessHeap(),
0, sizeof(DWORD) * This->HalInfo.ddCaps.dwNumFourCCCodes);
((LPD3DHAL_GLOBALDRIVERDATA)This->DirectDrawGlobal.lpD3DGlobalDriverData
)->lpTextureFormats = HeapAlloc(GetProcessHeap(), 0,
sizeof(DDSURFACEDESC) *
((LPD3DHAL_GLOBALDRIVERDATA)This->DirectDrawGlobal.lpD3DGlobalDriverData
)->dwNumTextureFormats);
if(!DdQueryDirectDrawObject (
@@ -91,23 +81,11 @@
RtlCopyMemory(&This->DirectDrawGlobal.vmiData,&This->HalInfo.vmiData,siz
eof(VIDMEMINFO));
RtlCopyMemory(&This->DirectDrawGlobal.ddCaps,&This->HalInfo.ddCaps,sizeo
f(DDCORECAPS));
This->DirectDrawGlobal.dwMonitorFrequency =
This->HalInfo.dwMonitorFrequency;
-
- /* have not check where it should go into yet
- This->HalInfo.GetDriverInfo datatype LPDDHAL_GETDRIVERINFO
- */
-
+
This->DirectDrawGlobal.dwModeIndex = This->HalInfo.dwModeIndex;
-
- /* have not check where it should go into yet
- This->HalInfo.lpdwFourCC datatype LPDWORD
- */
-
This->DirectDrawGlobal.dwNumModes = This->HalInfo.dwNumModes;
This->DirectDrawGlobal.lpModeInfo = This->HalInfo.lpModeInfo;
- /* have not check where it should go into yet
- This->HalInfo.dwFlags data type DWORD
- */
/* Unsure which of these two for lpPDevice
This->DirectDrawGlobal.dwPDevice = This->HalInfo.lpPDevice;
@@ -115,12 +93,8 @@
*/
This->DirectDrawGlobal.hInstance = This->HalInfo.hInstance;
-
- /* have not check where it should go into yet
- This->lpD3DGlobalDriverData datatype ULONG_PTR
- This->lpD3DHALCallbacks datatype ULONG_PTR
- */
-
RtlCopyMemory(&This->DirectDrawGlobal.lpDDCBtmp->HALDDExeBuf,&This->HalI
nfo.lpDDExeBufCallbacks,sizeof(DDHAL_DDEXEBUFCALLBACKS));
+
+
RtlCopyMemory(&This->DirectDrawGlobal.lpDDCBtmp->HALDDExeBuf,&This->HalI
nfo.lpDDExeBufCallbacks,sizeof(DDHAL_DDEXEBUFCALLBACKS));
@@ -297,7 +271,7 @@
/* Get the ZPixelFormats */
- This->DirectDrawGlobal.lpZPixelFormats =
(LPDDPIXELFORMAT)HeapAlloc(GetProcessHeap(), 0, sizeof(DDPIXELFORMAT));
+ This->DirectDrawGlobal.lpZPixelFormats =
HeapAlloc(GetProcessHeap(), 0, sizeof(DDPIXELFORMAT) *
This->DirectDrawGlobal.dwNumZPixelFormats);
DriverInfo.guidInfo = GUID_ZPixelFormats;
DriverInfo.lpvData =
(PVOID)This->DirectDrawGlobal.lpZPixelFormats;
DriverInfo.dwExpectedSize = sizeof(DDPIXELFORMAT);
@@ -305,49 +279,18 @@
- /* Setup some info from the callbacks we got */
+ /* Setup some info from the callbacks we got */
- /* FIXME do more callbacks and fill the gpl struct */
+ /* FIXME do more callbacks and fill the gpl struct */
- DDHAL_GETAVAILDRIVERMEMORYDATA mem;
- mem.lpDD = &This->DirectDrawGlobal;
+ DDHAL_GETAVAILDRIVERMEMORYDATA mem;
+ mem.lpDD = &This->DirectDrawGlobal;
-
This->DirectDrawGlobal.lpDDCBtmp->HALDDMiscellaneous.GetAvailDriverMemor
y(&mem);
+
This->DirectDrawGlobal.lpDDCBtmp->HALDDMiscellaneous.GetAvailDriverMemor
y(&mem);
- This->DirectDrawGlobal.ddCaps.dwVidMemFree = mem.dwFree;
- This->DirectDrawGlobal.ddCaps.dwVidMemTotal = mem.dwTotal;
-
-
-
- /* */
- /* DWORD dwIntRefCnt;
-
-
- LPVOID lpVtbl;
- LPDDRAWI_DDRAWSURFACE_LCL lpLcl;
- LPDDRAWI_DDRAWSURFACE_INT lpLink;
-
- } DDRAWI_DDRAWSURFACE_INT;
- */
-
- /* Setting up some part for surface not ever thing are being
fill in yet */
- This->DirectDrawGlobal.dsList =
(LPDDRAWI_DDRAWSURFACE_INT)HeapAlloc(GetProcessHeap(), 0,
-
sizeof(DDRAWI_DDRAWSURFACE_INT));
-
- This->DirectDrawGlobal.dsList->lpLink =
(LPDDRAWI_DDRAWSURFACE_INT) &This->DirectDrawGlobal.dsList;
-
- This->DirectDrawGlobal.dsList->lpLcl =
(LPDDRAWI_DDRAWSURFACE_LCL)HeapAlloc(GetProcessHeap(), 0,
-
sizeof(DDRAWI_DDRAWSURFACE_LCL));
-
- This->DirectDrawGlobal.dsList->lpLcl->lpGbl =
-
(LPDDRAWI_DDRAWSURFACE_GBL)HeapAlloc(GetProcessHeap(), 0,
sizeof(DDRAWI_DDRAWSURFACE_GBL));
-
- This->DirectDrawGlobal.dsList->lpLcl->lpGbl->lpDD =
&This->DirectDrawGlobal;
-
-
-
-
-
+ This->DirectDrawGlobal.ddCaps.dwVidMemFree = mem.dwFree;
+ This->DirectDrawGlobal.ddCaps.dwVidMemTotal = mem.dwTotal;
+
/* Now all setup for HAL is done and we hopply do not have
forget anything */
return DD_OK;