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
fe2c157f
Commit
fe2c157f
authored
Oct 07, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Move the 16-bit error functions to error16.c.
parent
3b1186de
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
6 deletions
+20
-6
error16.c
dlls/kernel32/error16.c
+18
-0
krnl386.exe.spec
dlls/kernel32/krnl386.exe.spec
+2
-2
thread.c
dlls/kernel32/thread.c
+0
-4
No files found.
dlls/kernel32/error16.c
View file @
fe2c157f
...
@@ -243,6 +243,24 @@ static const char *GetParamErrorString(UINT16 uErr) {
...
@@ -243,6 +243,24 @@ static const char *GetParamErrorString(UINT16 uErr) {
/***********************************************************************
/***********************************************************************
* SetLastError (KERNEL.147)
*/
void
WINAPI
SetLastError16
(
DWORD
error
)
{
SetLastError
(
error
);
}
/***********************************************************************
* GetLastError (KERNEL.148)
*/
DWORD
WINAPI
GetLastError16
(
void
)
{
return
GetLastError
();
}
/***********************************************************************
* LogError (KERNEL.324)
* LogError (KERNEL.324)
*/
*/
VOID
WINAPI
LogError16
(
UINT16
uErr
,
LPVOID
lpvInfo
)
VOID
WINAPI
LogError16
(
UINT16
uErr
,
LPVOID
lpvInfo
)
...
...
dlls/kernel32/krnl386.exe.spec
View file @
fe2c157f
...
@@ -148,8 +148,8 @@
...
@@ -148,8 +148,8 @@
144 pascal -ret16 CreateDirectory(ptr ptr) CreateDirectory16
144 pascal -ret16 CreateDirectory(ptr ptr) CreateDirectory16
145 pascal -ret16 RemoveDirectory(ptr) RemoveDirectory16
145 pascal -ret16 RemoveDirectory(ptr) RemoveDirectory16
146 pascal -ret16 DeleteFile(ptr) DeleteFile16
146 pascal -ret16 DeleteFile(ptr) DeleteFile16
147 pascal -ret16 SetLastError(long) SetLastError
147 pascal -ret16 SetLastError(long) SetLastError
16
148 pascal
GetLastError() GetLastError
148 pascal
GetLastError() GetLastError16
149 pascal -ret16 GetVersionEx(ptr) GetVersionEx16
149 pascal -ret16 GetVersionEx(ptr) GetVersionEx16
150 pascal -ret16 DirectedYield(word) DirectedYield16
150 pascal -ret16 DirectedYield(word) DirectedYield16
151 stub WinOldApCall
151 stub WinOldApCall
...
...
dlls/kernel32/thread.c
View file @
fe2c157f
...
@@ -588,7 +588,6 @@ HANDLE WINAPI GetCurrentThread(void)
...
@@ -588,7 +588,6 @@ HANDLE WINAPI GetCurrentThread(void)
#ifdef __i386__
#ifdef __i386__
/***********************************************************************
/***********************************************************************
* SetLastError (KERNEL.147)
* SetLastError (KERNEL32.@)
* SetLastError (KERNEL32.@)
*/
*/
/* void WINAPI SetLastError( DWORD error ); */
/* void WINAPI SetLastError( DWORD error ); */
...
@@ -599,7 +598,6 @@ __ASM_STDCALL_FUNC( SetLastError, 4,
...
@@ -599,7 +598,6 @@ __ASM_STDCALL_FUNC( SetLastError, 4,
"ret $4"
)
"ret $4"
)
/***********************************************************************
/***********************************************************************
* GetLastError (KERNEL.148)
* GetLastError (KERNEL32.@)
* GetLastError (KERNEL32.@)
*/
*/
/* DWORD WINAPI GetLastError(void); */
/* DWORD WINAPI GetLastError(void); */
...
@@ -622,7 +620,6 @@ __ASM_STDCALL_FUNC( GetCurrentThreadId, 0, ".byte 0x64\n\tmovl 0x24,%eax\n\tret"
...
@@ -622,7 +620,6 @@ __ASM_STDCALL_FUNC( GetCurrentThreadId, 0, ".byte 0x64\n\tmovl 0x24,%eax\n\tret"
#else
/* __i386__ */
#else
/* __i386__ */
/**********************************************************************
/**********************************************************************
* SetLastError (KERNEL.147)
* SetLastError (KERNEL32.@)
* SetLastError (KERNEL32.@)
*
*
* Sets the last-error code.
* Sets the last-error code.
...
@@ -636,7 +633,6 @@ void WINAPI SetLastError( DWORD error ) /* [in] Per-thread error code */
...
@@ -636,7 +633,6 @@ void WINAPI SetLastError( DWORD error ) /* [in] Per-thread error code */
}
}
/**********************************************************************
/**********************************************************************
* GetLastError (KERNEL.148)
* GetLastError (KERNEL32.@)
* GetLastError (KERNEL32.@)
*
*
* Get the last-error code.
* Get the last-error code.
...
...
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