diff --git a/reactos/base/applications/mspaint/dialogs.c b/reactos/base/applications/mspaint/dialogs.c index 3bc227b47ea..6a3e4e70a2c 100644 --- a/reactos/base/applications/mspaint/dialogs.c +++ b/reactos/base/applications/mspaint/dialogs.c @@ -228,9 +228,9 @@ CHSIZEDlgWinProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) TCHAR strrcAngle[100]; BOOL tr1, tr2, tr3, tr4; - LoadString(hProgInstance, IDS_INTNUMBERS, strrcIntNumbers, sizeof(strrcIntNumbers)); - LoadString(hProgInstance, IDS_PERCENTAGE, strrcPercentage, sizeof(strrcPercentage)); - LoadString(hProgInstance, IDS_ANGLE, strrcAngle, sizeof(strrcAngle)); + LoadString(hProgInstance, IDS_INTNUMBERS, strrcIntNumbers, SIZEOF(strrcIntNumbers)); + LoadString(hProgInstance, IDS_PERCENTAGE, strrcPercentage, SIZEOF(strrcPercentage)); + LoadString(hProgInstance, IDS_ANGLE, strrcAngle, SIZEOF(strrcAngle)); stretchSkew.percentage.x = GetDlgItemInt(hwnd, IDD_STRETCHSKEWEDITHSTRETCH, &tr1, FALSE); stretchSkew.percentage.y = GetDlgItemInt(hwnd, IDD_STRETCHSKEWEDITVSTRETCH, &tr2, FALSE); diff --git a/reactos/base/applications/regedit/framewnd.c b/reactos/base/applications/regedit/framewnd.c index 7510472bea4..39353c46465 100644 --- a/reactos/base/applications/regedit/framewnd.c +++ b/reactos/base/applications/regedit/framewnd.c @@ -249,9 +249,9 @@ BuildFilterStrings(WCHAR *Filter, PFILTERPAIR Pairs, int PairCount) c = 0; for(i = 0; i < PairCount; i++) { - c += LoadStringW(hInst, Pairs[i].DisplayID, &Filter[c], 255 * sizeof(WCHAR)); + c += LoadStringW(hInst, Pairs[i].DisplayID, &Filter[c], 255); Filter[++c] = L'\0'; - c += LoadStringW(hInst, Pairs[i].FilterID, &Filter[c], 255 * sizeof(WCHAR)); + c += LoadStringW(hInst, Pairs[i].FilterID, &Filter[c], 255); Filter[++c] = L'\0'; } Filter[++c] = L'\0'; @@ -360,7 +360,7 @@ static BOOL LoadHive(HWND hWnd) /* build the "All Files" filter up */ filter.DisplayID = IDS_FLT_ALLFILES; filter.FilterID = IDS_FLT_ALLFILES_FLT; - BuildFilterStrings(Filter, &filter, sizeof(filter)); + BuildFilterStrings(Filter, &filter, 1); ofn.lpstrFilter = Filter; /* load and set the caption and flags for dialog */ LoadStringW(hInst, IDS_LOAD_HIVE, Caption, COUNT_OF(Caption)); diff --git a/reactos/base/system/winlogon/sas.c b/reactos/base/system/winlogon/sas.c index 5d2c226d9ee..49d69d92261 100644 --- a/reactos/base/system/winlogon/sas.c +++ b/reactos/base/system/winlogon/sas.c @@ -438,7 +438,7 @@ HandleLogon( { //WCHAR StatusMsg[256]; WARN("WL: WlxActivateUserShell() failed\n"); - //LoadStringW(hAppInstance, IDS_FAILEDACTIVATEUSERSHELL, StatusMsg, sizeof(StatusMsg)); + //LoadStringW(hAppInstance, IDS_FAILEDACTIVATEUSERSHELL, StatusMsg, sizeof(StatusMsg) / sizeof(StatusMsg[0])); //MessageBoxW(0, StatusMsg, NULL, MB_ICONERROR); goto cleanup; }