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
815ae120
Commit
815ae120
authored
Jun 18, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ff91ac64
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
Makefile.in
dlls/oledlg/Makefile.in
+2
-0
insobjdlg.c
dlls/oledlg/insobjdlg.c
+0
-1
oledlg_main.c
dlls/oledlg/oledlg_main.c
+0
-1
pastespl.c
dlls/oledlg/pastespl.c
+4
-5
No files found.
dlls/oledlg/Makefile.in
View file @
815ae120
...
...
@@ -2,6 +2,8 @@ MODULE = oledlg.dll
IMPORTLIB
=
oledlg
IMPORTS
=
ole32 comdlg32 user32 advapi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
insobjdlg.c
\
oledlg_main.c
\
...
...
dlls/oledlg/insobjdlg.c
View file @
815ae120
...
...
@@ -29,7 +29,6 @@
#include "wingdi.h"
#include "winuser.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "oledlg.h"
#include "resource.h"
...
...
dlls/oledlg/oledlg_main.c
View file @
815ae120
...
...
@@ -33,7 +33,6 @@
#include "resource.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
...
...
dlls/oledlg/pastespl.c
View file @
815ae120
...
...
@@ -35,7 +35,6 @@
#include "resource.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
...
...
@@ -432,15 +431,15 @@ static void update_result_text(HWND hdlg, const ps_struct_t *ps_struct)
}
LoadStringW
(
OLEDLG_hInstance
,
res_id
,
resource_txt
,
ARRAY_SIZE
(
resource_txt
));
if
((
ptr
=
strstrW
(
resource_txt
,
percent_s
)))
if
((
ptr
=
wcsstr
(
resource_txt
,
percent_s
)))
{
/* FIXME handle %s in ResultText. Sub appname if IDS_PS_PASTE_OBJECT{_AS_ICON}. Else sub appropriate type name */
size_t
result_txt_len
=
strlenW
(
pent
->
lpstrResultText
);
size_t
result_txt_len
=
l
strlenW
(
pent
->
lpstrResultText
);
ptrdiff_t
offs
=
(
char
*
)
ptr
-
(
char
*
)
resource_txt
;
result_txt
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
resource_txt
)
+
result_txt_len
-
1
)
*
sizeof
(
WCHAR
));
result_txt
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
l
strlenW
(
resource_txt
)
+
result_txt_len
-
1
)
*
sizeof
(
WCHAR
));
memcpy
(
result_txt
,
resource_txt
,
offs
);
memcpy
((
char
*
)
result_txt
+
offs
,
pent
->
lpstrResultText
,
result_txt_len
*
sizeof
(
WCHAR
));
memcpy
((
char
*
)
result_txt
+
offs
+
result_txt_len
*
sizeof
(
WCHAR
),
ptr
+
2
,
(
strlenW
(
ptr
+
2
)
+
1
)
*
sizeof
(
WCHAR
));
memcpy
((
char
*
)
result_txt
+
offs
+
result_txt_len
*
sizeof
(
WCHAR
),
ptr
+
2
,
(
l
strlenW
(
ptr
+
2
)
+
1
)
*
sizeof
(
WCHAR
));
}
else
result_txt
=
resource_txt
;
...
...
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