From e1158889e55c321752c01602b469a96fa9e8f0af Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Fri, 22 Aug 2014 05:56:23 -0700 Subject: [PATCH] Fix backwards use_valve_fs logic for OpenDirectory --- core/logic/smn_filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/logic/smn_filesystem.cpp b/core/logic/smn_filesystem.cpp index 4d270d9d..17ee986c 100644 --- a/core/logic/smn_filesystem.cpp +++ b/core/logic/smn_filesystem.cpp @@ -258,7 +258,7 @@ static cell_t sm_OpenDirectory(IPluginContext *pContext, const cell_t *params) Handle_t handle = 0; - if (params[0] <= 1 || !params[2]) + if (params[0] >= 2 && params[2]) { char wildcardedPath[PLATFORM_MAX_PATH]; snprintf(wildcardedPath, sizeof(wildcardedPath), "%s*", path);