shlwapi: Use IS_INTRESOURCE not HIWORD to check a resource.
This commit is contained in:
parent
18b918d0c4
commit
32ea7ce1a7
|
@ -147,10 +147,10 @@ INT_PTR WINAPI SHMessageBoxCheckExA(HWND hWnd, HINSTANCE hInst, LPCSTR lpszName,
|
||||||
WCHAR szNameBuff[MAX_PATH], szIdBuff[MAX_PATH];
|
WCHAR szNameBuff[MAX_PATH], szIdBuff[MAX_PATH];
|
||||||
LPCWSTR szName = szNameBuff;
|
LPCWSTR szName = szNameBuff;
|
||||||
|
|
||||||
if (HIWORD(lpszName))
|
if (IS_INTRESOURCE(lpszName))
|
||||||
MultiByteToWideChar(CP_ACP, 0, lpszName, -1, szNameBuff, MAX_PATH);
|
|
||||||
else
|
|
||||||
szName = (LPCWSTR)lpszName; /* Resource Id or NULL */
|
szName = (LPCWSTR)lpszName; /* Resource Id or NULL */
|
||||||
|
else
|
||||||
|
MultiByteToWideChar(CP_ACP, 0, lpszName, -1, szNameBuff, MAX_PATH);
|
||||||
|
|
||||||
MultiByteToWideChar(CP_ACP, 0, lpszId, -1, szIdBuff, MAX_PATH);
|
MultiByteToWideChar(CP_ACP, 0, lpszId, -1, szIdBuff, MAX_PATH);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue