Skip to content

Commit 153a58c

Browse files
committed
Update commonutil.h
1 parent ec216f0 commit 153a58c

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

plugins/include/commonutil.h

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -52,56 +52,4 @@ CommonBitmapToIcon(
5252
return icon;
5353
}
5454

55-
/**
56-
* Creates a Ansi string using format specifiers.
57-
*
58-
* \param Format The format-control string.
59-
* \param ArgPtr A pointer to the list of arguments.
60-
*/
61-
FORCEINLINE
62-
PPH_BYTES
63-
FormatAnsiString_V(
64-
_In_ _Printf_format_string_ PSTR Format,
65-
_In_ va_list ArgPtr
66-
)
67-
{
68-
PPH_BYTES string;
69-
int length;
70-
71-
length = _vscprintf(Format, ArgPtr);
72-
73-
if (length == -1)
74-
return NULL;
75-
76-
string = PhCreateBytesEx(NULL, length * sizeof(CHAR));
77-
78-
_vsnprintf(
79-
string->Buffer,
80-
length,
81-
Format, ArgPtr
82-
);
83-
84-
return string;
85-
}
86-
87-
/**
88-
* Creates a Ansi string using format specifiers.
89-
*
90-
* \param Format The format-control string.
91-
*/
92-
FORCEINLINE
93-
PPH_BYTES
94-
FormatAnsiString(
95-
_In_ _Printf_format_string_ PSTR Format,
96-
...
97-
)
98-
{
99-
va_list argptr;
100-
101-
va_start(argptr, Format);
102-
103-
return FormatAnsiString_V(Format, argptr);
104-
}
105-
106-
10755
#endif

0 commit comments

Comments
 (0)