mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- Merged 2 fixes from MP Branch
o VFS: don't convert empty strings o Updated _PolishText.cpp - New EXE Release (Build: 3111) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3111 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+2
-1
@@ -30,8 +30,9 @@ os::CIterateDirectory::CIterateDirectory(vfs::Path const& sPath, utf8string cons
|
||||
fSearchHandle = FindFirstFileW((sPath+searchPattern)().c_wcs().c_str(), &fFileInfo);
|
||||
if (fSearchHandle == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
DWORD error = GetLastError();
|
||||
std::wstringstream wss;
|
||||
wss << L"Path [" << (sPath+searchPattern)() << L"] does not exist";
|
||||
wss << L"Error accessing path [" << (sPath+searchPattern)() << L"], error code : " << error;
|
||||
THROWEXCEPTION(wss.str().c_str());
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user