reactos/lib/shell32
diff -u -r1.22 -r1.23
--- pidl.c 20 Sep 2004 17:42:57 -0000 1.22
+++ pidl.c 20 Sep 2004 17:47:49 -0000 1.23
@@ -1621,16 +1621,16 @@
return S_OK;
}
-LPITEMIDLIST _ILCreateDrive( LPCSTR lpszNew)
+LPITEMIDLIST _ILCreateDrive(LPCWSTR lpszNew)
{
- char sTemp[4];
+ WCHAR sTemp[4];
LPITEMIDLIST pidlOut;
- sTemp[0]=lpszNew[0];
+ sTemp[0]=toupperW(lpszNew[0]);
sTemp[1]=':';
sTemp[2]='\\';
sTemp[3]=0x00;
- TRACE("(%s)\n",sTemp);
+ TRACE("(%s)\n",debugstr_w(sTemp));
/* FIXME: magic #s! */
if ((pidlOut = _ILCreateWithTypeAndSize(PT_DRIVE, 25)))
@@ -1639,7 +1639,7 @@
if ((pszDest = _ILGetTextPointer(pidlOut)))
{
- memcpy(pszDest, sTemp, sizeof(sTemp));
+ WideCharToMultiByte(CP_ACP, 0, sTemp, sizeof(sTemp)/sizeof(WCHAR), pszDest, sizeof(sTemp)/sizeof(WCHAR), NULL, NULL);
TRACE("-- create Drive: %s\n", debugstr_a(pszDest));
}
}
reactos/lib/shell32
diff -u -r1.7 -r1.8
--- pidl.h 20 Sep 2004 17:42:57 -0000 1.7
+++ pidl.h 20 Sep 2004 17:47:49 -0000 1.8
@@ -208,7 +208,7 @@
LPITEMIDLIST _ILCreatePrinters (void);
LPITEMIDLIST _ILCreateNetwork (void);
LPITEMIDLIST _ILCreateBitBucket (void);
-LPITEMIDLIST _ILCreateDrive (LPCSTR);
+LPITEMIDLIST _ILCreateDrive (LPCWSTR);
/*
* helper functions (getting struct-pointer)