Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
aeea9833
Commit
aeea9833
authored
May 13, 2005
by
Martin Fuchs
Committed by
Alexandre Julliard
May 13, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display source path in "move file" dialog.
parent
a22c767e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
winefile.c
programs/winefile/winefile.c
+7
-6
No files found.
programs/winefile/winefile.c
View file @
aeea9833
...
...
@@ -1597,6 +1597,7 @@ static INT_PTR CALLBACK DestinationDlgProc(HWND hwnd, UINT nmsg, WPARAM wparam,
switch
(
nmsg
)
{
case
WM_INITDIALOG
:
SetWindowLong
(
hwnd
,
GWL_USERDATA
,
lparam
);
SetWindowText
(
GetDlgItem
(
hwnd
,
201
),
(
LPCTSTR
)
lparam
);
return
1
;
case
WM_COMMAND
:
{
...
...
@@ -3644,9 +3645,11 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
case
ID_FILE_MOVE
:
{
TCHAR
new_name
[
BUFFER_LEN
],
old_name
[
BUFFER_LEN
];
int
len
;
int
len
,
ret
;
int
ret
=
DialogBoxParam
(
Globals
.
hInstance
,
MAKEINTRESOURCE
(
IDD_SELECT_DESTINATION
),
hwnd
,
DestinationDlgProc
,
(
LPARAM
)
new_name
);
get_path
(
pane
->
cur
,
new_name
);
ret
=
DialogBoxParam
(
Globals
.
hInstance
,
MAKEINTRESOURCE
(
IDD_SELECT_DESTINATION
),
hwnd
,
DestinationDlgProc
,
(
LPARAM
)
new_name
);
if
(
ret
!=
IDOK
)
break
;
...
...
@@ -3654,12 +3657,10 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
get_path
(
pane
->
cur
->
up
,
old_name
);
len
=
lstrlen
(
old_name
);
if
(
old_name
[
len
-
1
]
!=
'\\'
&&
old_name
[
len
-
1
]
!=
'/'
)
{
if
(
old_name
[
len
-
1
]
!=
'\\'
&&
old_name
[
len
-
1
]
!=
'/'
)
old_name
[
len
++
]
=
'/'
;
old_name
[
len
]
=
'\n'
;
}
lstrcpy
(
&
old_name
[
len
]
,
new_name
);
lstrcpy
(
old_name
+
len
,
new_name
);
lstrcpy
(
new_name
,
old_name
);
}
...
...
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