ole32: Use LoadCursorW instead of -A version.

This commit is contained in:
Nikolay Sivov 2010-04-28 01:32:37 +04:00 committed by Alexandre Julliard
parent 16bd9d53b9
commit 5ac7b165e6
1 changed files with 9 additions and 5 deletions

View File

@ -2119,24 +2119,28 @@ static void OLEDD_TrackMouseMove(TrackerWindowInfo* trackerInfo)
* when that's the case, we must display the standard drag and drop
* cursors.
*/
if (hr==DRAGDROP_S_USEDEFAULTCURSORS)
if (hr == DRAGDROP_S_USEDEFAULTCURSORS)
{
HCURSOR hCur;
if (*trackerInfo->pdwEffect & DROPEFFECT_MOVE)
{
SetCursor(LoadCursorA(hProxyDll, MAKEINTRESOURCEA(1)));
hCur = LoadCursorW(hProxyDll, MAKEINTRESOURCEW(1));
}
else if (*trackerInfo->pdwEffect & DROPEFFECT_COPY)
{
SetCursor(LoadCursorA(hProxyDll, MAKEINTRESOURCEA(2)));
hCur = LoadCursorW(hProxyDll, MAKEINTRESOURCEW(2));
}
else if (*trackerInfo->pdwEffect & DROPEFFECT_LINK)
{
SetCursor(LoadCursorA(hProxyDll, MAKEINTRESOURCEA(3)));
hCur = LoadCursorW(hProxyDll, MAKEINTRESOURCEW(3));
}
else
{
SetCursor(LoadCursorA(hProxyDll, MAKEINTRESOURCEA(0)));
hCur = LoadCursorW(hProxyDll, MAKEINTRESOURCEW(0));
}
SetCursor(hCur);
}
}