Skip to content

Commit

Permalink
define appId inline
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxuser committed Sep 17, 2024
1 parent 2804d9c commit 8c2c00d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions collat_payload/winrt.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ DEFINE_GUID(UIID_IUICommandFactory,
0x54, 0x04, 0x1b, 0xc1, 0x25, 0xe8
);

#define APP_ID L"XboxOneSystemToasts!Windows.Xbox.SystemToasts.Achievements"

HRESULT create_xml_document_from_string(
const wchar_t* xmlString,
__x_ABI_CWindows_CData_CXml_CDom_CIXmlDocument** doc
Expand Down Expand Up @@ -225,11 +223,13 @@ int WINAPI show_toast()
goto exit0;
}

HSTRING_HEADER header_AppIdHString;
PCWSTR appId = L"XboxOneSystemToasts!Windows.Xbox.SystemToasts.Achievements";

HSTRING_HEADER header_AppIdHString;
HSTRING AppIdHString;
hr = WindowsCreateStringReference(
APP_ID,
(UINT32)wcslen(APP_ID),
appId,
(UINT32)wcslen(appId),
&header_AppIdHString,
&AppIdHString
);
Expand Down

0 comments on commit 8c2c00d

Please sign in to comment.