summaryrefslogtreecommitdiffstats
path: root/Nt32Pkg/WinNtSimpleFileSystemDxe
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-31 19:20:14 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-31 19:20:14 +0000
commit5b368e7d6c8b0424b69d327bb2ae2153426737aa (patch)
treefdf224c11ba9ac843251933689d94554319fdc0d /Nt32Pkg/WinNtSimpleFileSystemDxe
parent3432b0cf1129c93689c015726b4e708f50c9d4fa (diff)
downloadedk2-5b368e7d6c8b0424b69d327bb2ae2153426737aa.tar.gz
edk2-5b368e7d6c8b0424b69d327bb2ae2153426737aa.tar.bz2
edk2-5b368e7d6c8b0424b69d327bb2ae2153426737aa.zip
Fix ICC build failures
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10324 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/WinNtSimpleFileSystemDxe')
-rw-r--r--Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c b/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c
index 2840d5f99f..167423dea1 100644
--- a/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c
+++ b/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c
@@ -544,6 +544,7 @@ Returns:
WIN_NT_EFI_FILE_PRIVATE *PrivateFile;
EFI_TPL OldTpl;
CHAR16 *TempFileName;
+ UINTN Size;
if (This == NULL || Root == NULL) {
return EFI_INVALID_PARAMETER;
@@ -613,10 +614,12 @@ Returns:
//
// Find the first file under it
//
+ Size = StrSize (PrivateFile->FilePath);
+ Size += StrSize (L"\\*");
Status = gBS->AllocatePool (
EfiBootServicesData,
- StrSize (PrivateFile->FilePath) + StrSize (L"\\*"),
- &TempFileName
+ Size,
+ (VOID **)&TempFileName
);
if (EFI_ERROR (Status)) {
goto Done;