1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(fs_win32): fix inconsistency using LV_FS_WIN32_PATH... (#7608)

This commit is contained in:
Victor Wheeler 2025-01-23 19:05:53 -07:00 committed by GitHub
parent 0cd1f0ca39
commit b9dd8b1172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -7,7 +7,7 @@
* INCLUDES
*********************/
#include "../../../lvgl.h"
#if LV_USE_FS_STDIO != '\0'
#if LV_USE_FS_STDIO
#include <stdio.h>
#ifndef WIN32

View File

@ -7,7 +7,7 @@
* INCLUDES
*********************/
#include "../../../lvgl.h"
#if LV_USE_FS_WIN32 != '\0'
#if LV_USE_FS_WIN32
#include <windows.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)*/
char buf[LV_FS_MAX_PATH_LEN];
#ifdef LV_FS_WIN32_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, "");
handle->dir_p = FindFirstFileA(buf, &fdata);