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
7ea592e5
Commit
7ea592e5
authored
Aug 09, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Use RtlSetLastWin32Error.
parent
131de4bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
init.c
dlls/wineandroid.drv/init.c
+1
-1
opengl.c
dlls/wineandroid.drv/opengl.c
+4
-4
No files found.
dlls/wineandroid.drv/init.c
View file @
7ea592e5
...
@@ -312,7 +312,7 @@ BOOL ANDROID_EnumDisplaySettingsEx( LPCWSTR name, DWORD n, LPDEVMODEW devmode, D
...
@@ -312,7 +312,7 @@ BOOL ANDROID_EnumDisplaySettingsEx( LPCWSTR name, DWORD n, LPDEVMODEW devmode, D
if
(
n
>
0
)
if
(
n
>
0
)
{
{
TRACE
(
"mode %d -- not present
\n
"
,
n
);
TRACE
(
"mode %d -- not present
\n
"
,
n
);
SetLast
Error
(
ERROR_NO_MORE_FILES
);
RtlSetLastWin32
Error
(
ERROR_NO_MORE_FILES
);
return
FALSE
;
return
FALSE
;
}
}
...
...
dlls/wineandroid.drv/opengl.c
View file @
7ea592e5
...
@@ -363,7 +363,7 @@ static BOOL android_wglMakeContextCurrentARB( HDC draw_hdc, HDC read_hdc, struct
...
@@ -363,7 +363,7 @@ static BOOL android_wglMakeContextCurrentARB( HDC draw_hdc, HDC read_hdc, struct
goto
done
;
goto
done
;
}
}
}
}
SetLast
Error
(
ERROR_INVALID_HANDLE
);
RtlSetLastWin32
Error
(
ERROR_INVALID_HANDLE
);
done:
done:
release_gl_drawable
(
read_gl
);
release_gl_drawable
(
read_gl
);
...
@@ -382,7 +382,7 @@ static BOOL android_wglSwapIntervalEXT( int interval )
...
@@ -382,7 +382,7 @@ static BOOL android_wglSwapIntervalEXT( int interval )
if
(
interval
<
0
)
if
(
interval
<
0
)
{
{
SetLastError
(
ERROR_INVALID_DATA
);
RtlSetLastWin32Error
(
ERROR_INVALID_DATA
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -391,7 +391,7 @@ static BOOL android_wglSwapIntervalEXT( int interval )
...
@@ -391,7 +391,7 @@ static BOOL android_wglSwapIntervalEXT( int interval )
if
(
ret
)
if
(
ret
)
swap_interval
=
interval
;
swap_interval
=
interval
;
else
else
SetLast
Error
(
ERROR_DC_NOT_FOUND
);
RtlSetLastWin32
Error
(
ERROR_DC_NOT_FOUND
);
return
ret
;
return
ret
;
}
}
...
@@ -553,7 +553,7 @@ static BOOL WINAPI android_wglMakeCurrent( HDC hdc, struct wgl_context *ctx )
...
@@ -553,7 +553,7 @@ static BOOL WINAPI android_wglMakeCurrent( HDC hdc, struct wgl_context *ctx )
goto
done
;
goto
done
;
}
}
}
}
SetLast
Error
(
ERROR_INVALID_HANDLE
);
RtlSetLastWin32
Error
(
ERROR_INVALID_HANDLE
);
done:
done:
release_gl_drawable
(
gl
);
release_gl_drawable
(
gl
);
...
...
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