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
c4dd394a
Commit
c4dd394a
authored
Jun 03, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Don't use unicode.h.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
daddd9b3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
25 deletions
+14
-25
clipboard.c
dlls/winemac.drv/clipboard.c
+4
-5
display.c
dlls/winemac.drv/display.c
+0
-1
keyboard.c
dlls/winemac.drv/keyboard.c
+3
-4
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+0
-3
mouse.c
dlls/winemac.drv/mouse.c
+5
-8
window.c
dlls/winemac.drv/window.c
+2
-4
No files found.
dlls/winemac.drv/clipboard.c
View file @
c4dd394a
...
...
@@ -36,7 +36,6 @@
#include "shlobj.h"
#include "wine/list.h"
#include "wine/server.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
clipboard
);
...
...
@@ -766,7 +765,7 @@ static void *import_nsfilenames_to_hdrop(CFDataRef data, size_t *ret_size)
len
=
1
;
/* for the terminating null */
for
(
i
=
0
;
i
<
count
;
i
++
)
len
+=
strlenW
(
paths
[
i
])
+
1
;
len
+=
wcslen
(
paths
[
i
])
+
1
;
*
ret_size
=
sizeof
(
*
dropfiles
)
+
len
*
sizeof
(
WCHAR
);
if
(
!
(
dropfiles
=
malloc
(
*
ret_size
)))
...
...
@@ -784,8 +783,8 @@ static void *import_nsfilenames_to_hdrop(CFDataRef data, size_t *ret_size)
p
=
(
WCHAR
*
)(
dropfiles
+
1
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
strcpyW
(
p
,
paths
[
i
]);
p
+=
strlenW
(
p
)
+
1
;
wcscpy
(
p
,
paths
[
i
]);
p
+=
wcslen
(
p
)
+
1
;
}
*
p
=
0
;
...
...
@@ -994,7 +993,7 @@ static CFDataRef export_hdrop_to_filenames(void *data, size_t size)
}
if
(
dropfiles
->
fWide
)
p
=
(
WCHAR
*
)
p
+
strlenW
(
p
)
+
1
;
p
=
(
WCHAR
*
)
p
+
wcslen
(
p
)
+
1
;
else
p
=
(
char
*
)
p
+
strlen
(
p
)
+
1
;
...
...
dlls/winemac.drv/display.c
View file @
c4dd394a
...
...
@@ -31,7 +31,6 @@
#include "ddrawi.h"
#define WIN32_NO_STATUS
#include "winternl.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
display
);
...
...
dlls/winemac.drv/keyboard.c
View file @
c4dd394a
...
...
@@ -32,7 +32,6 @@
#include "macdrv.h"
#include "winuser.h"
#include "wine/unicode.h"
#include "wine/server.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
keyboard
);
...
...
@@ -403,7 +402,7 @@ static BOOL char_matches_string(WCHAR wchar, UniChar *string, BOOL ignore_diacri
{
BOOL
ret
;
CFStringRef
s1
=
CFStringCreateWithCharactersNoCopy
(
NULL
,
(
UniChar
*
)
&
wchar
,
1
,
kCFAllocatorNull
);
CFStringRef
s2
=
CFStringCreateWithCharactersNoCopy
(
NULL
,
string
,
strlenW
(
string
),
kCFAllocatorNull
);
CFStringRef
s2
=
CFStringCreateWithCharactersNoCopy
(
NULL
,
string
,
wcslen
(
string
),
kCFAllocatorNull
);
CFStringCompareFlags
flags
=
kCFCompareCaseInsensitive
|
kCFCompareNonliteral
|
kCFCompareWidthInsensitive
;
if
(
ignore_diacritics
)
flags
|=
kCFCompareDiacriticInsensitive
;
...
...
@@ -1366,7 +1365,7 @@ INT macdrv_GetKeyNameText(LONG lparam, LPWSTR buffer, INT size)
if
(
status
==
noErr
&&
deadKeyState
)
{
lstrcpynW
(
buffer
+
len
,
dead
,
size
-
len
);
len
=
strlenW
(
buffer
);
len
=
wcslen
(
buffer
);
}
TRACE
(
"lparam 0x%08x -> %s
\n
"
,
lparam
,
debugstr_w
(
buffer
));
...
...
@@ -1526,7 +1525,7 @@ UINT macdrv_MapVirtualKeyEx(UINT wCode, UINT wMapType, HKL hkl)
}
if
(
status
==
noErr
&&
len
)
ret
=
toupperW
(
s
[
0
])
|
(
deadKey
?
0x80000000
:
0
);
ret
=
RtlUpcaseUnicodeChar
(
s
[
0
])
|
(
deadKey
?
0x80000000
:
0
);
break
;
}
...
...
dlls/winemac.drv/macdrv_main.c
View file @
c4dd394a
...
...
@@ -32,10 +32,7 @@
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "macdrv.h"
#include "winuser.h"
#include "winreg.h"
#include "wine/server.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
macdrv
);
...
...
dlls/winemac.drv/mouse.c
View file @
c4dd394a
...
...
@@ -28,10 +28,7 @@
#define OEMRESOURCE
#include "macdrv.h"
#include "winuser.h"
#include "winreg.h"
#include "wine/server.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
cursor
);
...
...
@@ -182,11 +179,11 @@ CFStringRef copy_system_cursor_name(ICONINFOEXW *info)
if
(
!
info
->
szModName
[
0
])
return
NULL
;
p
=
strrchrW
(
info
->
szModName
,
'\\'
);
strcpyW
(
name
,
p
?
p
+
1
:
info
->
szModName
);
p
=
name
+
strlenW
(
name
);
p
=
wcsrchr
(
info
->
szModName
,
'\\'
);
wcscpy
(
name
,
p
?
p
+
1
:
info
->
szModName
);
p
=
name
+
wcslen
(
name
);
*
p
++
=
','
;
if
(
info
->
szResName
[
0
])
strcpyW
(
p
,
info
->
szResName
);
if
(
info
->
szResName
[
0
])
wcscpy
(
p
,
info
->
szResName
);
else
{
char
buf
[
16
];
...
...
@@ -212,7 +209,7 @@ CFStringRef copy_system_cursor_name(ICONINFOEXW *info)
return
NULL
;
/* force standard cursor */
}
cursor_name
=
CFStringCreateWithCharacters
(
NULL
,
value
,
strlenW
(
value
));
cursor_name
=
CFStringCreateWithCharacters
(
NULL
,
value
,
wcslen
(
value
));
if
(
!
cursor_name
)
{
WARN
(
"CFStringCreateWithCharacters failed for %s
\n
"
,
debugstr_w
(
value
));
...
...
dlls/winemac.drv/window.c
View file @
c4dd394a
...
...
@@ -35,8 +35,6 @@
#undef LoadResource
#include "macdrv.h"
#include "winuser.h"
#include "wine/unicode.h"
#include "wine/server.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
macdrv
);
...
...
@@ -715,7 +713,7 @@ static void create_cocoa_window(struct macdrv_win_data *data)
/* set the window text */
if
(
!
NtUserInternalGetWindowText
(
data
->
hwnd
,
text
,
ARRAY_SIZE
(
text
)))
text
[
0
]
=
0
;
macdrv_set_cocoa_window_title
(
data
->
cocoa_window
,
text
,
strlenW
(
text
));
macdrv_set_cocoa_window_title
(
data
->
cocoa_window
,
text
,
wcslen
(
text
));
/* set the window region */
if
(
win_rgn
||
IsRectEmpty
(
&
data
->
window_rect
))
sync_window_region
(
data
,
win_rgn
);
...
...
@@ -1773,7 +1771,7 @@ void macdrv_SetWindowText(HWND hwnd, LPCWSTR text)
TRACE
(
"%p, %s
\n
"
,
hwnd
,
debugstr_w
(
text
));
if
((
win
=
macdrv_get_cocoa_window
(
hwnd
,
FALSE
)))
macdrv_set_cocoa_window_title
(
win
,
text
,
strlenW
(
text
));
macdrv_set_cocoa_window_title
(
win
,
text
,
wcslen
(
text
));
}
...
...
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