[PATCH 3/3] kernel32: Add string for DXGI_ERROR_NOT_CURRENTLY_AVAILABLE error.

Paul Gofman pgofman at codeweavers.com
Mon Sep 21 06:28:12 CDT 2020


I have verified with the attached test program that the strings really 
can be queried from kernel32.dll:
 > res_str.exe kernel32.dll 887a0001

 > res_str.exe kernel32.dll 887a0022


On 9/21/20 14:20, Paul Gofman wrote:
> Fixes a crash in Horizon Zero Dawn on switching to fullscreen mode.
>
> Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
> ---
>   dlls/kernel32/tests/format_msg.c | 1 +
>   dlls/kernel32/winerror.mc        | 7 +++++++
>   2 files changed, 8 insertions(+)
>
> diff --git a/dlls/kernel32/tests/format_msg.c b/dlls/kernel32/tests/format_msg.c
> index 143530a74ac..52b7b6925e4 100644
> --- a/dlls/kernel32/tests/format_msg.c
> +++ b/dlls/kernel32/tests/format_msg.c
> @@ -1754,6 +1754,7 @@ static void test_message_system_errors(void)
>       {
>           {E_NOTIMPL},
>           {DXGI_ERROR_INVALID_CALL, TRUE /* Available since Win8 */},
> +        {DXGI_ERROR_NOT_CURRENTLY_AVAILABLE, TRUE /* Available since Win8 */},
>       };
>   
>       char buffer[256];
> diff --git a/dlls/kernel32/winerror.mc b/dlls/kernel32/winerror.mc
> index b777389571c..341c9572710 100644
> --- a/dlls/kernel32/winerror.mc
> +++ b/dlls/kernel32/winerror.mc
> @@ -3771,3 +3771,10 @@ SymbolicName=DXGI_ERROR_INVALID_CALL
>   Language=ENU
>   Invalid call.
>   .
> +MessageId=0x22
> +Severity=CoError
> +Facility=Dxgi
> +SymbolicName=DXGI_ERROR_NOT_CURRENTLY_AVAILABLE
> +Language=ENU
> +Resource is not currently available.
> +.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: res_str.c
Type: text/x-csrc
Size: 760 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200921/ae4b95ee/attachment.c>


More information about the wine-devel mailing list