Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
82b517de
Commit
82b517de
authored
Feb 12, 2001
by
Andreas Mohr
Committed by
Alexandre Julliard
Feb 12, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented the int21 LFN rename file function.
parent
a3fca2a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
int21.c
msdos/int21.c
+15
-7
No files found.
msdos/int21.c
View file @
82b517de
...
...
@@ -1801,7 +1801,7 @@ void WINAPI DOS3Call( CONTEXT86 *context )
BX_reg
(
context
)
=
DOSMEM_Available
()
>>
4
;
}
}
break
;
break
;
case
0x49
:
/* FREE MEMORY */
TRACE
(
"FREE MEMORY segment %04lX
\n
"
,
context
->
SegEs
);
...
...
@@ -2265,7 +2265,7 @@ void WINAPI DOS3Call( CONTEXT86 *context )
case
0x60
:
switch
(
CL_reg
(
context
))
{
case
0x01
:
/*Get short filename or path */
case
0x01
:
/*
Get short filename or path */
if
(
!
GetShortPathNameA
(
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Esi
),
...
...
@@ -2274,7 +2274,7 @@ void WINAPI DOS3Call( CONTEXT86 *context )
bSetDOSExtendedError
=
TRUE
;
else
AX_reg
(
context
)
=
0
;
break
;
case
0x02
:
/*Get canonical long filename or path */
case
0x02
:
/*
Get canonical long filename or path */
if
(
!
GetFullPathNameA
(
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Esi
),
128
,
...
...
@@ -2290,7 +2290,7 @@ void WINAPI DOS3Call( CONTEXT86 *context )
AL_reg
(
context
)
=
0
;
break
;
}
break
;
break
;
case
0x6c
:
/* Create or open file */
TRACE
(
"LONG FILENAME - CREATE OR OPEN FILE %s
\n
"
,
(
LPCSTR
)
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Esi
));
...
...
@@ -2322,9 +2322,17 @@ void WINAPI DOS3Call( CONTEXT86 *context )
}
break
;
case
0x56
:
/* Move (rename) file */
FIXME
(
"LONG FILENAME - RENAME FILE %s to %s stub
\n
"
,
(
LPCSTR
)
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Edx
),
(
LPCSTR
)
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegEs
,
context
->
Edi
));
{
LPCSTR
fn1
=
(
LPCSTR
)
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Edx
);
LPCSTR
fn2
=
(
LPCSTR
)
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegEs
,
context
->
Edi
);
TRACE
(
"LONG FILENAME - RENAME FILE %s to %s
\n
"
,
fn1
,
fn2
);
if
(
!
MoveFileA
(
fn1
,
fn2
))
{
SET_CFLAG
(
context
);
AL_reg
(
context
)
=
GetLastError
();
}
}
break
;
default:
FIXME
(
"Unimplemented long file name function:
\n
"
);
INT_BARF
(
context
,
0x21
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment