mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-23 05:44:41 +02:00
dosfns.c: only copy to current_ldt if pointer is valid
This commit is contained in:
parent
6fbb1d0043
commit
61647299c6
@ -957,7 +957,6 @@ COUNT DosChangeDir(BYTE FAR * s)
|
||||
Some redirectors do not write back to the CDS.
|
||||
SHSUCdX needs this. jt
|
||||
*/
|
||||
fstrcpy(current_ldt->cdsCurrentPath, PriPathName);
|
||||
if (FP_OFF(current_ldt) != 0xFFFF)
|
||||
{
|
||||
fstrcpy(current_ldt->cdsCurrentPath, PriPathName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user