Index: reactos/sdk/lib/atl/cstringt.h =================================================================== --- reactos/sdk/lib/atl/cstringt.h (revision 74124) +++ reactos/sdk/lib/atl/cstringt.h (working copy) @@ -327,35 +327,47 @@ } CStringT(_In_opt_z_ const XCHAR* pszSrc) : - CThisSimpleString( StringTraits::GetDefaultManager() ) + CThisSimpleString(StringTraits::GetDefaultManager()) { - // FIXME: Check whether pszSrc is not a resource string ID! - *this = pszSrc; + if (pszSrc == NULL) + return; + if (IS_INTRESOURCE(pszSrc)) + LoadString(LOWORD(pszSrc)); + else + *this = pszSrc; } - CStringT( - _In_opt_z_ const XCHAR* pszSrc, - _In_ IAtlStringMgr* pStringMgr) : - CThisSimpleString( pStringMgr ) + CStringT(_In_opt_z_ const XCHAR* pszSrc, + _In_ IAtlStringMgr* pStringMgr) : CThisSimpleString(pStringMgr) { - // FIXME: Check whether pszSrc is not a resource string ID! - *this = pszSrc; + if (pszSrc == NULL) + return; + if (IS_INTRESOURCE(pszSrc)) + LoadString(LOWORD(pszSrc)); + else + *this = pszSrc; } CStringT(_In_opt_z_ const YCHAR* pszSrc) : - CThisSimpleString( StringTraits::GetDefaultManager() ) + CThisSimpleString(StringTraits::GetDefaultManager()) { - // FIXME: Check whether pszSrc is not a resource string ID! - *this = pszSrc; + if (pszSrc == NULL) + return; + if (IS_INTRESOURCE(pszSrc)) + LoadString(LOWORD(pszSrc)); + else + *this = pszSrc; } - CStringT( - _In_opt_z_ const YCHAR* pszSrc, - _In_ IAtlStringMgr* pStringMgr) : - CThisSimpleString( pStringMgr ) + CStringT(_In_opt_z_ const YCHAR* pszSrc, + _In_ IAtlStringMgr* pStringMgr) : CThisSimpleString(pStringMgr) { - // FIXME: Check whether pszSrc is not a resource string ID! - *this = pszSrc; + if (pszSrc == NULL) + return; + if (IS_INTRESOURCE(pszSrc)) + LoadString(LOWORD(pszSrc)); + else + *this = pszSrc; } CStringT( Index: rostests/apitests/atl/CMakeLists.txt =================================================================== --- rostests/apitests/atl/CMakeLists.txt (revision 74124) +++ rostests/apitests/atl/CMakeLists.txt (working copy) @@ -17,7 +17,7 @@ testlist.c atl_apitest.rc) -target_link_libraries(atl_apitest wine uuid) +target_link_libraries(atl_apitest wine atlnew uuid) set_module_type(atl_apitest win32cui) add_importlibs(atl_apitest rpcrt4 ole32 oleaut32 msimg32 gdi32 advapi32 user32 msvcrt kernel32 ntdll) add_rostests_file(TARGET atl_apitest)