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
dc176ded
Commit
dc176ded
authored
Jun 12, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c9ea1257
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
50 deletions
+21
-50
Makefile.in
dlls/msctf/Makefile.in
+2
-0
categorymgr.c
dlls/msctf/categorymgr.c
+7
-12
compartmentmgr.c
dlls/msctf/compartmentmgr.c
+0
-4
context.c
dlls/msctf/context.c
+0
-4
documentmgr.c
dlls/msctf/documentmgr.c
+0
-4
inputprocessor.c
dlls/msctf/inputprocessor.c
+12
-16
msctf.c
dlls/msctf/msctf.c
+0
-2
range.c
dlls/msctf/range.c
+0
-4
threadmgr.c
dlls/msctf/threadmgr.c
+0
-4
No files found.
dlls/msctf/Makefile.in
View file @
dc176ded
MODULE
=
msctf.dll
IMPORTS
=
uuid ole32 oleaut32 user32 advapi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
categorymgr.c
\
compartmentmgr.c
\
...
...
dlls/msctf/categorymgr.c
View file @
dc176ded
...
...
@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#define COBJMACROS
...
...
@@ -33,7 +31,6 @@
#include "winerror.h"
#include "objbase.h"
#include "wine/unicode.h"
#include "msctf.h"
#include "msctf_internal.h"
...
...
@@ -115,7 +112,7 @@ static HRESULT WINAPI CategoryMgr_RegisterCategory ( ITfCategoryMgr *iface,
TRACE
(
"(%p) %s %s %s
\n
"
,
This
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
rcatid
),
debugstr_guid
(
rguid
));
StringFromGUID2
(
rclsid
,
buf
,
39
);
s
printfW
(
fullkey
,
fmt
,
szwSystemTIPKey
,
buf
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
fmt
,
szwSystemTIPKey
,
buf
);
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
fullkey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
tipkey
)
!=
ERROR_SUCCESS
)
...
...
@@ -123,7 +120,7 @@ static HRESULT WINAPI CategoryMgr_RegisterCategory ( ITfCategoryMgr *iface,
StringFromGUID2
(
rcatid
,
buf
,
39
);
StringFromGUID2
(
rguid
,
buf2
,
39
);
s
printfW
(
fullkey
,
fmt2
,
ctg
,
ctg
,
buf
,
buf2
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
fmt2
,
ctg
,
ctg
,
buf
,
buf2
);
res
=
RegCreateKeyExW
(
tipkey
,
fullkey
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WRITE
,
NULL
,
&
catkey
,
NULL
);
...
...
@@ -131,7 +128,7 @@ static HRESULT WINAPI CategoryMgr_RegisterCategory ( ITfCategoryMgr *iface,
if
(
!
res
)
{
s
printfW
(
fullkey
,
fmt2
,
ctg
,
itm
,
buf2
,
buf
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
fmt2
,
ctg
,
itm
,
buf2
,
buf
);
res
=
RegCreateKeyExW
(
tipkey
,
fullkey
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WRITE
,
NULL
,
&
itmkey
,
NULL
);
...
...
@@ -163,7 +160,7 @@ static HRESULT WINAPI CategoryMgr_UnregisterCategory ( ITfCategoryMgr *iface,
TRACE
(
"(%p) %s %s %s
\n
"
,
This
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
rcatid
),
debugstr_guid
(
rguid
));
StringFromGUID2
(
rclsid
,
buf
,
39
);
s
printfW
(
fullkey
,
fmt
,
szwSystemTIPKey
,
buf
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
fmt
,
szwSystemTIPKey
,
buf
);
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
fullkey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
tipkey
)
!=
ERROR_SUCCESS
)
...
...
@@ -171,11 +168,9 @@ static HRESULT WINAPI CategoryMgr_UnregisterCategory ( ITfCategoryMgr *iface,
StringFromGUID2
(
rcatid
,
buf
,
39
);
StringFromGUID2
(
rguid
,
buf2
,
39
);
sprintfW
(
fullkey
,
fmt2
,
ctg
,
ctg
,
buf
,
buf2
);
sprintfW
(
fullkey
,
fmt2
,
ctg
,
itm
,
buf2
,
buf
);
swprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
),
fmt2
,
ctg
,
ctg
,
buf
,
buf2
);
RegDeleteTreeW
(
tipkey
,
fullkey
);
s
printfW
(
fullkey
,
fmt2
,
ctg
,
itm
,
buf2
,
buf
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
fmt2
,
ctg
,
itm
,
buf2
,
buf
);
RegDeleteTreeW
(
tipkey
,
fullkey
);
RegCloseKey
(
tipkey
);
...
...
@@ -216,7 +211,7 @@ static HRESULT WINAPI CategoryMgr_FindClosestCategory ( ITfCategoryMgr *iface,
return
E_INVALIDARG
;
StringFromGUID2
(
rguid
,
buf
,
39
);
s
printfW
(
fullkey
,
fmt
,
szwSystemTIPKey
,
buf
,
buf
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
fmt
,
szwSystemTIPKey
,
buf
,
buf
);
*
pcatid
=
GUID_NULL
;
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
fullkey
,
0
,
KEY_READ
,
&
key
)
!=
...
...
dlls/msctf/compartmentmgr.c
View file @
dc176ded
...
...
@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#define COBJMACROS
...
...
@@ -35,8 +33,6 @@
#include "oleauto.h"
#include "olectl.h"
#include "wine/unicode.h"
#include "msctf.h"
#include "msctf_internal.h"
...
...
dlls/msctf/context.c
View file @
dc176ded
...
...
@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#define COBJMACROS
...
...
@@ -34,8 +32,6 @@
#include "objbase.h"
#include "olectl.h"
#include "wine/unicode.h"
#include "msctf.h"
#include "msctf_internal.h"
...
...
dlls/msctf/documentmgr.c
View file @
dc176ded
...
...
@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#define COBJMACROS
...
...
@@ -33,8 +31,6 @@
#include "winerror.h"
#include "objbase.h"
#include "wine/unicode.h"
#include "msctf.h"
#include "msctf_internal.h"
...
...
dlls/msctf/inputprocessor.c
View file @
dc176ded
...
...
@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#define COBJMACROS
...
...
@@ -34,8 +32,6 @@
#include "objbase.h"
#include "olectl.h"
#include "wine/unicode.h"
#include "msctf.h"
#include "msctf_internal.h"
...
...
@@ -230,7 +226,7 @@ static void add_userkey( REFCLSID rclsid, LANGID langid,
StringFromGUID2
(
rclsid
,
buf
,
39
);
StringFromGUID2
(
guidProfile
,
buf2
,
39
);
s
printfW
(
fullkey
,
szwFullLangfmt
,
szwSystemTIPKey
,
buf
,
szwLngp
,
langid
,
buf2
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
szwFullLangfmt
,
szwSystemTIPKey
,
buf
,
szwLngp
,
langid
,
buf2
);
res
=
RegCreateKeyExW
(
HKEY_CURRENT_USER
,
fullkey
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WRITE
,
NULL
,
&
key
,
&
disposition
);
...
...
@@ -303,7 +299,7 @@ static HRESULT WINAPI InputProcessorProfiles_Register(
TRACE
(
"(%p) %s
\n
"
,
This
,
debugstr_guid
(
rclsid
));
StringFromGUID2
(
rclsid
,
buf
,
39
);
s
printfW
(
fullkey
,
szwTipfmt
,
szwSystemTIPKey
,
buf
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
szwTipfmt
,
szwSystemTIPKey
,
buf
);
if
(
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
fullkey
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WRITE
,
NULL
,
&
tipkey
,
NULL
)
!=
ERROR_SUCCESS
)
...
...
@@ -324,7 +320,7 @@ static HRESULT WINAPI InputProcessorProfiles_Unregister(
TRACE
(
"(%p) %s
\n
"
,
This
,
debugstr_guid
(
rclsid
));
StringFromGUID2
(
rclsid
,
buf
,
39
);
s
printfW
(
fullkey
,
szwTipfmt
,
szwSystemTIPKey
,
buf
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
szwTipfmt
,
szwSystemTIPKey
,
buf
);
RegDeleteTreeW
(
HKEY_LOCAL_MACHINE
,
fullkey
);
RegDeleteTreeW
(
HKEY_CURRENT_USER
,
fullkey
);
...
...
@@ -355,14 +351,14 @@ static HRESULT WINAPI InputProcessorProfiles_AddLanguageProfile(
debugstr_wn
(
pchIconFile
,
cchFile
),
uIconIndex
);
StringFromGUID2
(
rclsid
,
buf
,
39
);
s
printfW
(
fullkey
,
szwTipfmt
,
szwSystemTIPKey
,
buf
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
szwTipfmt
,
szwSystemTIPKey
,
buf
);
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
fullkey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
tipkey
)
!=
ERROR_SUCCESS
)
return
E_FAIL
;
StringFromGUID2
(
guidProfile
,
buf
,
39
);
s
printfW
(
fullkey
,
fmt2
,
szwLngp
,
langid
,
buf
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
fmt2
,
szwLngp
,
langid
,
buf
);
res
=
RegCreateKeyExW
(
tipkey
,
fullkey
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WRITE
,
NULL
,
&
fmtkey
,
&
disposition
);
...
...
@@ -421,7 +417,7 @@ static HRESULT WINAPI InputProcessorProfiles_GetDefaultLanguageProfile(
return
E_INVALIDARG
;
StringFromGUID2
(
catid
,
buf
,
39
);
s
printfW
(
fullkey
,
szwDefaultFmt
,
szwSystemCTFKey
,
szwAssemblies
,
langid
,
buf
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
szwDefaultFmt
,
szwSystemCTFKey
,
szwAssemblies
,
langid
,
buf
);
if
(
RegOpenKeyExW
(
HKEY_CURRENT_USER
,
fullkey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
hkey
)
!=
ERROR_SUCCESS
)
...
...
@@ -480,7 +476,7 @@ static HRESULT WINAPI InputProcessorProfiles_SetDefaultLanguageProfile(
return
E_FAIL
;
StringFromGUID2
(
&
catid
,
buf
,
39
);
s
printfW
(
fullkey
,
szwDefaultFmt
,
szwSystemCTFKey
,
szwAssemblies
,
langid
,
buf
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
szwDefaultFmt
,
szwSystemCTFKey
,
szwAssemblies
,
langid
,
buf
);
if
(
RegCreateKeyExW
(
HKEY_CURRENT_USER
,
fullkey
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WRITE
,
NULL
,
&
hkey
,
NULL
)
!=
ERROR_SUCCESS
)
...
...
@@ -644,7 +640,7 @@ static HRESULT WINAPI InputProcessorProfiles_EnableLanguageProfile(
StringFromGUID2
(
rclsid
,
buf
,
39
);
StringFromGUID2
(
guidProfile
,
buf2
,
39
);
s
printfW
(
fullkey
,
szwFullLangfmt
,
szwSystemTIPKey
,
buf
,
szwLngp
,
langid
,
buf2
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
szwFullLangfmt
,
szwSystemTIPKey
,
buf
,
szwLngp
,
langid
,
buf2
);
res
=
RegOpenKeyExW
(
HKEY_CURRENT_USER
,
fullkey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
key
);
...
...
@@ -677,7 +673,7 @@ static HRESULT WINAPI InputProcessorProfiles_IsEnabledLanguageProfile(
StringFromGUID2
(
rclsid
,
buf
,
39
);
StringFromGUID2
(
guidProfile
,
buf2
,
39
);
s
printfW
(
fullkey
,
szwFullLangfmt
,
szwSystemTIPKey
,
buf
,
szwLngp
,
langid
,
buf2
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
szwFullLangfmt
,
szwSystemTIPKey
,
buf
,
szwLngp
,
langid
,
buf2
);
res
=
RegOpenKeyExW
(
HKEY_CURRENT_USER
,
fullkey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
key
);
...
...
@@ -721,7 +717,7 @@ static HRESULT WINAPI InputProcessorProfiles_EnableLanguageProfileByDefault(
StringFromGUID2
(
rclsid
,
buf
,
39
);
StringFromGUID2
(
guidProfile
,
buf2
,
39
);
s
printfW
(
fullkey
,
szwFullLangfmt
,
szwSystemTIPKey
,
buf
,
szwLngp
,
langid
,
buf2
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
szwFullLangfmt
,
szwSystemTIPKey
,
buf
,
szwLngp
,
langid
,
buf2
);
res
=
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
fullkey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
key
);
...
...
@@ -1191,7 +1187,7 @@ static INT next_LanguageProfile(EnumTfLanguageProfiles *This, CLSID clsid, TF_LA
if
(
This
->
langkey
==
NULL
)
{
s
printfW
(
fullkey
,
fmt
,
This
->
szwCurrentClsid
,
szwLngp
,
This
->
langid
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
fmt
,
This
->
szwCurrentClsid
,
szwLngp
,
This
->
langid
);
res
=
RegOpenKeyExW
(
This
->
tipkey
,
fullkey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
This
->
langkey
);
if
(
res
)
{
...
...
@@ -1315,7 +1311,7 @@ static HRESULT WINAPI EnumTfLanguageProfiles_Clone( IEnumTfLanguageProfiles *ifa
WCHAR
fullkey
[
168
];
static
const
WCHAR
fmt
[]
=
{
'%'
,
's'
,
'\\'
,
'%'
,
's'
,
'\\'
,
'0'
,
'x'
,
'%'
,
'0'
,
'8'
,
'x'
,
0
};
s
printfW
(
fullkey
,
fmt
,
This
->
szwCurrentClsid
,
szwLngp
,
This
->
langid
);
s
wprintf
(
fullkey
,
ARRAY_SIZE
(
fullkey
)
,
fmt
,
This
->
szwCurrentClsid
,
szwLngp
,
This
->
langid
);
res
=
RegOpenKeyExW
(
new_This
->
tipkey
,
fullkey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
This
->
langkey
);
new_This
->
lang_index
=
This
->
lang_index
;
}
...
...
dlls/msctf/msctf.c
View file @
dc176ded
...
...
@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
...
...
dlls/msctf/range.c
View file @
dc176ded
...
...
@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#define COBJMACROS
...
...
@@ -33,8 +31,6 @@
#include "winerror.h"
#include "objbase.h"
#include "wine/unicode.h"
#include "msctf.h"
#include "msctf_internal.h"
...
...
dlls/msctf/threadmgr.c
View file @
dc176ded
...
...
@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#define COBJMACROS
...
...
@@ -34,8 +32,6 @@
#include "objbase.h"
#include "olectl.h"
#include "wine/unicode.h"
#include "msctf.h"
#include "msctf_internal.h"
...
...
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