[UTILMAN] Properly annotate some variables (#2561)

Previously the code had a mixture of 'sz', 'wsz', 'lp' and 'lpwsz' Hungarian annotation prefixes which could bring confusions about the nature of the annotated variables. From now on all of these variables have a well defined annotation. Furthermore, add a missing argument annotation to LaunchProcess().
This commit is contained in:
Bișoc George 2020-04-26 14:14:17 +02:00 committed by GitHub
parent f44cb6de96
commit e4f70e5434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 60 additions and 60 deletions

View file

@ -38,9 +38,9 @@ INT WINAPI wWinMain(IN HINSTANCE hInstance,
IN INT nCmdShow)
{
HMODULE hModule;
WCHAR wszFormat[MAX_BUFFER];
WCHAR wszFailLoad[MAX_BUFFER];
WCHAR wszTitle[MAX_BUFFER];
WCHAR szFormat[MAX_BUFFER];
WCHAR szFailLoad[MAX_BUFFER];
WCHAR szTitle[MAX_BUFFER];
EXECDLGROUTINE UManStartDlg;
UNREFERENCED_PARAMETER(hPrevInstance);
@ -51,11 +51,11 @@ INT WINAPI wWinMain(IN HINSTANCE hInstance,
hModule = LoadLibraryW(L"UManDlg.dll");
if (!hModule)
{
LoadStringW(hInstance, IDS_FAIL_INIT, wszFormat, _countof(wszFormat));
LoadStringW(hInstance, IDS_FAIL_INIT_TITLE, wszTitle, _countof(wszTitle));
LoadStringW(hInstance, IDS_FAIL_INIT, szFormat, _countof(szFormat));
LoadStringW(hInstance, IDS_FAIL_INIT_TITLE, szTitle, _countof(szTitle));
StringCchPrintfW(wszFailLoad, _countof(wszFailLoad), wszFormat, GetLastError());
MessageBoxW(GetDesktopWindow(), wszFailLoad, wszTitle, MB_ICONERROR | MB_OK);
StringCchPrintfW(szFailLoad, _countof(szFailLoad), szFormat, GetLastError());
MessageBoxW(GetDesktopWindow(), szFailLoad, szTitle, MB_ICONERROR | MB_OK);
return -1;
}