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
c7760ce7
Commit
c7760ce7
authored
May 26, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Remove string.c.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f41e205d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
114 deletions
+79
-114
Makefile.in
dlls/kernel32/Makefile.in
+0
-1
string.c
dlls/kernel32/string.c
+0
-113
virtual.c
dlls/kernel32/virtual.c
+79
-0
No files found.
dlls/kernel32/Makefile.in
View file @
c7760ce7
...
...
@@ -24,7 +24,6 @@ C_SRCS = \
process.c
\
profile.c
\
resource.c
\
string.c
\
sync.c
\
tape.c
\
term.c
\
...
...
dlls/kernel32/string.c
deleted
100644 → 0
View file @
f41e205d
/*
* Kernel string functions
*
* Copyright 1993 Yngvi Sigurjonsson
* Copyright 1996 Alexandre Julliard
* Copyright 2001 Dmitry Timoshkov for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include <ctype.h>
#include <stdarg.h>
#include <string.h>
#define WINE_NO_INLINE_STRING
#include "windef.h"
#include "winbase.h"
#include "wine/unicode.h"
#include "wine/exception.h"
/***********************************************************************
* lstrcatA (KERNEL32.@)
* lstrcat (KERNEL32.@)
*/
LPSTR
WINAPI
lstrcatA
(
LPSTR
dst
,
LPCSTR
src
)
{
__TRY
{
strcat
(
dst
,
src
);
}
__EXCEPT_PAGE_FAULT
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
NULL
;
}
__ENDTRY
return
dst
;
}
/***********************************************************************
* lstrcatW (KERNEL32.@)
*/
LPWSTR
WINAPI
lstrcatW
(
LPWSTR
dst
,
LPCWSTR
src
)
{
__TRY
{
strcatW
(
dst
,
src
);
}
__EXCEPT_PAGE_FAULT
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
NULL
;
}
__ENDTRY
return
dst
;
}
/***********************************************************************
* lstrcpyA (KERNEL32.@)
* lstrcpy (KERNEL32.@)
*/
LPSTR
WINAPI
lstrcpyA
(
LPSTR
dst
,
LPCSTR
src
)
{
__TRY
{
/* this is how Windows does it */
memmove
(
dst
,
src
,
strlen
(
src
)
+
1
);
}
__EXCEPT_PAGE_FAULT
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
NULL
;
}
__ENDTRY
return
dst
;
}
/***********************************************************************
* lstrcpyW (KERNEL32.@)
*/
LPWSTR
WINAPI
lstrcpyW
(
LPWSTR
dst
,
LPCWSTR
src
)
{
__TRY
{
strcpyW
(
dst
,
src
);
}
__EXCEPT_PAGE_FAULT
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
NULL
;
}
__ENDTRY
return
dst
;
}
dlls/kernel32/virtual.c
View file @
c7760ce7
...
...
@@ -30,6 +30,7 @@
# include <unistd.h>
#endif
#define WINE_NO_INLINE_STRING
#include "ntstatus.h"
#define WIN32_NO_STATUS
#define NONAMELESSUNION
...
...
@@ -40,6 +41,7 @@
#include "winerror.h"
#include "psapi.h"
#include "wine/exception.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "kernel_private.h"
...
...
@@ -256,3 +258,80 @@ BOOL WINAPI IsBadStringPtrW( LPCWSTR str, UINT_PTR max )
__ENDTRY
return
FALSE
;
}
/***********************************************************************
* lstrcatA (KERNEL32.@)
* lstrcat (KERNEL32.@)
*/
LPSTR
WINAPI
lstrcatA
(
LPSTR
dst
,
LPCSTR
src
)
{
__TRY
{
strcat
(
dst
,
src
);
}
__EXCEPT
(
badptr_handler
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
NULL
;
}
__ENDTRY
return
dst
;
}
/***********************************************************************
* lstrcatW (KERNEL32.@)
*/
LPWSTR
WINAPI
lstrcatW
(
LPWSTR
dst
,
LPCWSTR
src
)
{
__TRY
{
strcatW
(
dst
,
src
);
}
__EXCEPT
(
badptr_handler
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
NULL
;
}
__ENDTRY
return
dst
;
}
/***********************************************************************
* lstrcpyA (KERNEL32.@)
* lstrcpy (KERNEL32.@)
*/
LPSTR
WINAPI
lstrcpyA
(
LPSTR
dst
,
LPCSTR
src
)
{
__TRY
{
/* this is how Windows does it */
memmove
(
dst
,
src
,
strlen
(
src
)
+
1
);
}
__EXCEPT
(
badptr_handler
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
NULL
;
}
__ENDTRY
return
dst
;
}
/***********************************************************************
* lstrcpyW (KERNEL32.@)
*/
LPWSTR
WINAPI
lstrcpyW
(
LPWSTR
dst
,
LPCWSTR
src
)
{
__TRY
{
strcpyW
(
dst
,
src
);
}
__EXCEPT
(
badptr_handler
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
NULL
;
}
__ENDTRY
return
dst
;
}
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