mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtfile/FileOp: CID 88744,89337,89546
This commit is contained in:
parent
aa2a529e25
commit
4ddbc11557
1 changed files with 8 additions and 4 deletions
|
@ -2157,7 +2157,7 @@ _FileMoveCopy(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
source_dir = strdup(".");
|
source_dir = ".";
|
||||||
source_file = file_set[i];
|
source_file = file_set[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3364,7 +3364,7 @@ CreateFileFromBuffer(int pipe_s2m,
|
||||||
void *buffer,
|
void *buffer,
|
||||||
int size)
|
int size)
|
||||||
{
|
{
|
||||||
int fnew;
|
int fnew = -1;
|
||||||
int rc=0;
|
int rc=0;
|
||||||
unsigned int mode;
|
unsigned int mode;
|
||||||
Boolean BufferIsExecutable=FALSE;
|
Boolean BufferIsExecutable=FALSE;
|
||||||
|
@ -3411,12 +3411,16 @@ CreateFileFromBuffer(int pipe_s2m,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
close(fnew);
|
close(fnew);
|
||||||
|
fnew = -1;
|
||||||
DPRINTF (("CreateBuffeFromFile: Target file %s created\n",
|
DPRINTF (("CreateBuffeFromFile: Target file %s created\n",
|
||||||
fully_qualified_name));
|
fully_qualified_name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Handle errors */
|
if (fnew >= 0)
|
||||||
|
close(fnew);
|
||||||
|
|
||||||
|
/* Handle errors */
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
{
|
{
|
||||||
switch (savedError)
|
switch (savedError)
|
||||||
|
@ -3462,7 +3466,7 @@ DisplayDuplicateOpError(
|
||||||
int index)
|
int index)
|
||||||
|
|
||||||
{
|
{
|
||||||
char *msgptr,*err_msg,*title,*tchar;
|
char *msgptr,*err_msg = NULL,*title,*tchar;
|
||||||
Widget dialogwidget;
|
Widget dialogwidget;
|
||||||
|
|
||||||
if (cb_data->mode == MOVE_FILE)
|
if (cb_data->mode == MOVE_FILE)
|
||||||
|
|
Loading…
Reference in a new issue