From: BJ H. <par...@us...> - 2003-10-20 20:42:31
|
Log Message: ----------- i hate querykeyboardmap...... Modified Files: -------------- /cvsroot/decaldev/source/Inject: Manager.cpp Revision Data ------------- Index: Manager.cpp =================================================================== RCS file: /cvsroot/decaldev/source/Inject/Manager.cpp,v retrieving revision 1.78 retrieving revision 1.79 diff -u -d -r1.78 -r1.79 --- Manager.cpp 16 Oct 2003 03:23:53 -0000 1.78 +++ Manager.cpp 20 Oct 2003 18:54:21 -0000 1.79 @@ -1294,7 +1294,7 @@ HANDLE hFile; - //DWORD dwType = REG_SZ; + DWORD dwType = REG_EXPAND_SZ; DWORD dwLengthPath = MAX_PATH; DWORD dwLengthMap; DWORD dwFileSize; @@ -1316,11 +1316,10 @@ { dwLengthMap = MAX_PATH; ZeroMemory(tempfile, sizeof(tempfile)); - if (key.QueryMultiStringValue(_T("CurrentInputMap"), tempfile, &dwLengthMap) != ERROR_SUCCESS) + if (key.QueryValue(_T("CurrentInputMap"), &dwType, tempfile, &dwLengthMap) != ERROR_SUCCESS) lstrcat(tempbuf, _T("\\default.map")); else { - // this is where vc7 was breaking // someone less peaved than me can choose a better answer to the 2 strcat's lstrcat(tempbuf, _T("\\")); lstrcat(tempbuf, tempfile); @@ -1331,7 +1330,7 @@ } else return E_FAIL; - + ::MessageBox(NULL, tempbuf, "QKM Path", 0); hFile = CreateFile(tempbuf, GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); |