Home
last modified time | relevance | path

Searched refs:cMaxChars (Results 1 – 3 of 3) sorted by relevance

/reactos/dll/cpl/desk/
H A Dmuireg.c10 static int load_string(HINSTANCE hModule, UINT resId, LPWSTR pwszBuffer, INT cMaxChars) in load_string() argument
36 cMaxChars = (*pString < cMaxChars) ? *pString : (cMaxChars - 1); in load_string()
37 if (cMaxChars >= 0) in load_string()
39 memcpy(pwszBuffer, pString+1, cMaxChars * sizeof(WCHAR)); in load_string()
40 pwszBuffer[cMaxChars] = L'\0'; in load_string()
43 return cMaxChars; in load_string()
/reactos/dll/win32/shell32/
H A Dvista.c39 static int load_string(HINSTANCE hModule, UINT resId, LPWSTR pwszBuffer, INT cMaxChars) in load_string() argument
65 cMaxChars = (*pString < cMaxChars) ? *pString : (cMaxChars - 1); in load_string()
66 if (cMaxChars >= 0) in load_string()
68 memcpy(pwszBuffer, pString+1, cMaxChars * sizeof(WCHAR)); in load_string()
69 pwszBuffer[cMaxChars] = L'\0'; in load_string()
72 return cMaxChars; in load_string()
/reactos/dll/win32/advapi32/reg/
H A Dreg.c5126 static int load_string(HINSTANCE hModule, UINT resId, LPWSTR pwszBuffer, INT cMaxChars) in load_string() argument
5152 cMaxChars = (*pString < cMaxChars) ? *pString : (cMaxChars - 1); in load_string()
5153 if (cMaxChars >= 0) in load_string()
5155 memcpy(pwszBuffer, pString + 1, cMaxChars * sizeof(WCHAR)); in load_string()
5156 pwszBuffer[cMaxChars] = L'\0'; in load_string()
5159 return cMaxChars; in load_string()