mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13:00 +08:00
fix(fs_win32): fix inconsistency using LV_FS_WIN32_PATH... (#7608)
This commit is contained in:
parent
0cd1f0ca39
commit
b9dd8b1172
@ -7,7 +7,7 @@
|
|||||||
* INCLUDES
|
* INCLUDES
|
||||||
*********************/
|
*********************/
|
||||||
#include "../../../lvgl.h"
|
#include "../../../lvgl.h"
|
||||||
#if LV_USE_FS_STDIO != '\0'
|
#if LV_USE_FS_STDIO
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* INCLUDES
|
* INCLUDES
|
||||||
*********************/
|
*********************/
|
||||||
#include "../../../lvgl.h"
|
#include "../../../lvgl.h"
|
||||||
#if LV_USE_FS_WIN32 != '\0'
|
#if LV_USE_FS_WIN32
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -370,11 +370,7 @@ static void * fs_dir_open(lv_fs_drv_t * drv, const char * path)
|
|||||||
|
|
||||||
/*Make the path relative to the current directory (the projects root folder)*/
|
/*Make the path relative to the current directory (the projects root folder)*/
|
||||||
char buf[LV_FS_MAX_PATH_LEN];
|
char buf[LV_FS_MAX_PATH_LEN];
|
||||||
#ifdef LV_FS_WIN32_PATH
|
|
||||||
lv_snprintf(buf, sizeof(buf), LV_FS_WIN32_PATH "%s\\*", path);
|
lv_snprintf(buf, sizeof(buf), LV_FS_WIN32_PATH "%s\\*", path);
|
||||||
#else
|
|
||||||
lv_snprintf(buf, sizeof(buf), "%s\\*", path);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
lv_strcpy(handle->next_fn, "");
|
lv_strcpy(handle->next_fn, "");
|
||||||
handle->dir_p = FindFirstFileA(buf, &fdata);
|
handle->dir_p = FindFirstFileA(buf, &fdata);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user