diff --git a/sal/osl/w32/file.cxx b/sal/osl/w32/file.cxx index b25ed7735d36..6e8eb570f84c 100644 --- a/sal/osl/w32/file.cxx +++ b/sal/osl/w32/file.cxx @@ -1460,7 +1460,7 @@ namespace /* private */ void parse_UNC_path(const sal_Unicode* path, UNCComponents* puncc) { OSL_PRECOND(is_UNC_path(path), "Precondition violated: No UNC path"); - OSL_PRECOND(!wcschr(path, SLASH), "Path must not contain slashes"); + OSL_PRECOND(rtl_ustr_indexOfChar(path, SLASH) != -1, "Path must not contain slashes"); const sal_Unicode* pend = path + rtl_ustr_getLength(path); const sal_Unicode* ppos = path + 2; @@ -1580,7 +1580,7 @@ namespace /* private */ e.g. 'c:\' or '\\Share' have no more parents */ int path_make_parent(sal_Unicode* path) { - OSL_PRECOND(!wcschr(path, SLASH), "Path must not contain slashes"); + OSL_PRECOND(rtl_ustr_indexOfChar(path, SLASH) != -1, "Path must not contain slashes"); OSL_PRECOND(has_path_parent(path), "Path must have a parent"); sal_Unicode* pos_last_backslash = path + rtl_ustr_lastIndexOfChar(path, BACKSLASH); @@ -1833,7 +1833,7 @@ namespace /* private */ oslDirectoryCreationCallbackFunc aDirectoryCreationCallbackFunc, void* pData) { - OSL_PRECOND(wcslen(dir_path) > 0 && (wcsrchr(dir_path, BACKSLASH) != (dir_path + (wcslen(dir_path) - 1))), \ + OSL_PRECOND(rtl_ustr_getLength(dir_path) > 0 && (rtl_ustr_lastIndexOfChar(dir_path, BACKSLASH) != rtl_ustr_getLength(dir_path) - 1), \ "Path must not end with a backslash"); DWORD w32_error = create_dir_with_callback( diff --git a/store/workben/makefile.mk b/store/workben/makefile.mk index 636006eaea7b..334585710522 100644 --- a/store/workben/makefile.mk +++ b/store/workben/makefile.mk @@ -46,14 +46,22 @@ NO_DEFAULT_STL=TRUE .IF "$(GUI)" == "UNX" STORELIB= -lstore .ELSE # unx +.IF "$(GUI)$(COM)"=="WNTGCC" +STORELIB= -lstore$(UDK_MAJOR) +.ELSE STORELIB= $(LB)$/istore.lib +.ENDIF .ENDIF # unx .ENDIF # storelib .IF "$(GUI)" == "UNX" STOREDBGLIB= $(LB)$/libstoredbg.a .ELSE # unx +.IF "$(GUI)$(COM)"=="WNTGCC" +STOREDBGLIB= $(LB)$/libstoredbg.a +.ELSE STOREDBGLIB= $(LB)$/storedbg.lib +.ENDIF .ENDIF # unx CFLAGS+= -I..$/source