Commit 7ea592e5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wineandroid: Use RtlSetLastWin32Error.

parent 131de4bb
......@@ -312,7 +312,7 @@ BOOL ANDROID_EnumDisplaySettingsEx( LPCWSTR name, DWORD n, LPDEVMODEW devmode, D
if (n > 0)
{
TRACE( "mode %d -- not present\n", n );
SetLastError( ERROR_NO_MORE_FILES );
RtlSetLastWin32Error( ERROR_NO_MORE_FILES );
return FALSE;
}
......
......@@ -363,7 +363,7 @@ static BOOL android_wglMakeContextCurrentARB( HDC draw_hdc, HDC read_hdc, struct
goto done;
}
}
SetLastError( ERROR_INVALID_HANDLE );
RtlSetLastWin32Error( ERROR_INVALID_HANDLE );
done:
release_gl_drawable( read_gl );
......@@ -382,7 +382,7 @@ static BOOL android_wglSwapIntervalEXT( int interval )
if (interval < 0)
{
SetLastError(ERROR_INVALID_DATA);
RtlSetLastWin32Error( ERROR_INVALID_DATA );
return FALSE;
}
......@@ -391,7 +391,7 @@ static BOOL android_wglSwapIntervalEXT( int interval )
if (ret)
swap_interval = interval;
else
SetLastError( ERROR_DC_NOT_FOUND );
RtlSetLastWin32Error( ERROR_DC_NOT_FOUND );
return ret;
}
......@@ -553,7 +553,7 @@ static BOOL WINAPI android_wglMakeCurrent( HDC hdc, struct wgl_context *ctx )
goto done;
}
}
SetLastError( ERROR_INVALID_HANDLE );
RtlSetLastWin32Error( ERROR_INVALID_HANDLE );
done:
release_gl_drawable( gl );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment