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
191b8d01
Commit
191b8d01
authored
Nov 12, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use RtlGetLastWin32Error() instead of GetLastError().
parent
1d6b3e14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
clipboard.c
dlls/winex11.drv/clipboard.c
+1
-1
window.c
dlls/winex11.drv/window.c
+1
-1
No files found.
dlls/winex11.drv/clipboard.c
View file @
191b8d01
...
@@ -1655,7 +1655,7 @@ static UINT *get_clipboard_formats( UINT *size )
...
@@ -1655,7 +1655,7 @@ static UINT *get_clipboard_formats( UINT *size )
if
(
!
(
ids
=
malloc
(
*
size
*
sizeof
(
*
ids
)
)))
return
NULL
;
if
(
!
(
ids
=
malloc
(
*
size
*
sizeof
(
*
ids
)
)))
return
NULL
;
if
(
NtUserGetUpdatedClipboardFormats
(
ids
,
*
size
,
size
))
break
;
if
(
NtUserGetUpdatedClipboardFormats
(
ids
,
*
size
,
size
))
break
;
free
(
ids
);
free
(
ids
);
if
(
GetLast
Error
()
!=
ERROR_INSUFFICIENT_BUFFER
)
return
NULL
;
if
(
RtlGetLastWin32
Error
()
!=
ERROR_INSUFFICIENT_BUFFER
)
return
NULL
;
}
}
register_win32_formats
(
ids
,
*
size
);
register_win32_formats
(
ids
,
*
size
);
return
ids
;
return
ids
;
...
...
dlls/winex11.drv/window.c
View file @
191b8d01
...
@@ -2067,7 +2067,7 @@ HWND create_foreign_window( Display *display, Window xwin )
...
@@ -2067,7 +2067,7 @@ HWND create_foreign_window( Display *display, Window xwin )
class
.
lpszClassName
=
classW
;
class
.
lpszClassName
=
classW
;
RtlInitUnicodeString
(
&
class_name
,
classW
);
RtlInitUnicodeString
(
&
class_name
,
classW
);
if
(
!
NtUserRegisterClassExWOW
(
&
class
,
&
class_name
,
&
version
,
NULL
,
0
,
0
,
NULL
)
&&
if
(
!
NtUserRegisterClassExWOW
(
&
class
,
&
class_name
,
&
version
,
NULL
,
0
,
0
,
NULL
)
&&
GetLast
Error
()
!=
ERROR_CLASS_ALREADY_EXISTS
)
RtlGetLastWin32
Error
()
!=
ERROR_CLASS_ALREADY_EXISTS
)
{
{
ERR
(
"Could not register foreign window class
\n
"
);
ERR
(
"Could not register foreign window class
\n
"
);
return
FALSE
;
return
FALSE
;
...
...
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