mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-17 21:48:19 +01:00
+ Parameter check
This commit is contained in:
@@ -830,7 +830,7 @@ bool WINAPI SFileAddFileEx(
|
||||
int nError = ERROR_SUCCESS;
|
||||
|
||||
// Check parameters
|
||||
if(szFileName == NULL || *szFileName == 0)
|
||||
if(hMpq == NULL || szFileName == NULL || *szFileName == 0)
|
||||
nError = ERROR_INVALID_PARAMETER;
|
||||
|
||||
// Open added file
|
||||
|
||||
Reference in New Issue
Block a user