Skip to content

Commit

Permalink
[HOTPLUG] Add remark comment for IDS_EJECT_ERROR_FORMAT
Browse files Browse the repository at this point in the history
  • Loading branch information
TAN-Gaming committed Nov 3, 2023
1 parent 450c062 commit 818ef27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dll/cpl/hotplug/eject.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ SafeRemoveDevice(
LPCWSTR pszFormat = L"";
WCHAR szError[64];

/* NOTES: IDS_EJECT_ERROR_FORMAT resource has to be explicitly NULL-terminated
* so we can use the string directly without having to make a copy of it. */
LoadStringW(hApplet, IDS_EJECT_ERROR_FORMAT, (LPWSTR)&pszFormat, 0);
StringCbPrintfW(szError, sizeof(szError), pszFormat, cr);

Expand Down

0 comments on commit 818ef27

Please sign in to comment.